Skip to main content
Solved

Automation: use parameters in filename of email attachement

  • August 6, 2019
  • 3 replies
  • 43 views

vki
Contributor
Forum|alt.badge.img+7

I want to create an automation in FME Server for a user to validate his data.

He sends in an email with his data as attachement and the topic of the validation as part of the email subject.

In the workbench, the email subject is parsed and the topic is kept as an attribute. At the end a logfile is written with the name: topic.log (I do this with a fanout in the writer).

This logfile I want to send back to the sender of the email as an attachement. But to attach the file to the email, I have to fill in its path and I don't know the filename at this point. How can I pass the value of "topic" (=filename) as parameter to the Automation, so that I could use it in the "Email Details"?

(I'm using FME Server 2019.0)

Thanks, Vera

Best answer by david_r

At the current stage (2019.1) and for your use case I would recommend that you use the Email transformer inside your workspace and not the email functionality in the automation.

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.

3 replies

david_r
Celebrity
  • Best Answer
  • August 7, 2019

At the current stage (2019.1) and for your use case I would recommend that you use the Email transformer inside your workspace and not the email functionality in the automation.


vadis
Contributor
Forum|alt.badge.img+5
  • Contributor
  • June 23, 2020

Hi,

 

 

Any changes regarding this theme in 2020 version of FME Server?

Forum|alt.badge.img+2

Hi,

 

 

Any changes regarding this theme in 2020 version of FME Server?

Hi @vadis,

Yes in FME 2020 we introduced the FME Server Automations Writer. This writer enables you to parse Feature Type and attribute information out of a workspace to be used downstream within your Automation workflow.

 

This means if you'd prefer to use the Email Action in FME Server as opposed to the Emailer transformer, you can parse out an attribute from the workspace to the automation that holds the file path and use this in the email attachment configuration. The most recent comment on this Idea as well as this Article runs through some examples of how to use this new writer.