Skip to main content
Solved

Sending multiple attachments using E-mail in Automation

  • July 9, 2020
  • 5 replies
  • 82 views

sameer
Contributor
Forum|alt.badge.img+18

Hello

I just started using Automation in FME Server 2020 and plan to use it more by migrating my existing scheduled jobs.

I have a workspace which runs a batch script.

 

It uploads multiple files to an SFTP server using WinSCP.com commands withing the script.

The workspace in question, in "Automations" is connected to 2 Email (External Action)

 

1 - Success then send an e-mail

2 - Failed then send an e-mail with 2 attachments (WinSCP.txt & Error.txt)

Number 2 is the problem.

 

So I thought I'd use Global Keys for that purpose ({Global.Email_Attachment}{Global.Email_attachment1})

Right now it's failing before when the 2 parameters are associated together I get an error in the log stating that the file can't be found.

Is that possible and if so how do I include both Global Keys within the Email Attachment field?

 

If not how do I proceed?

Thanks

 

Sameer

Best answer by mattmatsafe

@sameer​ Update: as of FME Server 2022.1, it is now possible to attach multiple files when using the Email Action

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

jovitaatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 635 replies
  • July 14, 2020

Hi @sameer,

Sorry to hear that you've run into this blocker! Unfortunately so far, we're only able to send one attachment outgoing in the 'Send an Email' action, can you try zipping up your two attachments to send as one instead?


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • July 14, 2020

Hi @sameer,

Sorry to hear that you've run into this blocker! Unfortunately so far, we're only able to send one attachment outgoing in the 'Send an Email' action, can you try zipping up your two attachments to send as one instead?

Or, alternatively, a workspace with an Emailer transformer, as that does support multiple attachments.


sameer
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • 63 replies
  • July 14, 2020

Or, alternatively, a workspace with an Emailer transformer, as that does support multiple attachments.

@jovitaatsafe @redgeographics

Thanks. I've used another "Send an Email" action to attach the second file in case of failure. I just wanted to use "Automations" instead of altering my workspace. I was just being stubborn. Seems that it's a limitation for now. Maybe that should be a feature improvement.


mattmatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • 108 replies
  • Best Answer
  • August 25, 2022

@sameer​ Update: as of FME Server 2022.1, it is now possible to attach multiple files when using the Email Action

 


sameer
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • 63 replies
  • August 26, 2022

@sameer​ Update: as of FME Server 2022.1, it is now possible to attach multiple files when using the Email Action

 

@mattmatsafe​ Thanks. That's great news! I will be updating FME Server in due course.