Skip to main content
Solved

Sending multiple attachments using E-mail in Automation


sameer
Contributor
Forum|alt.badge.img+16

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

 

View original
Did this help you find an answer to your question?

5 replies

jovitaatsafe
Safer
Forum|alt.badge.img+11

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+49
jovitaatsafe wrote:

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+16
  • Author
  • Contributor
  • July 14, 2020
redgeographics wrote:

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+13
  • Safer
  • 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+16
  • Author
  • Contributor
  • August 26, 2022
mattmatsafe wrote:

@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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings