Skip to main content

I'm sure other people must have workspaces running this, but so far the only transformer I found was the emailer and no Email writer.

 

At the end of the workspace I want to send an email to one of our staff summarizing what happened in the last week (how many traps were visited, names of the land owners and their contact details). This data is of course all in the workspace already.

 

How do I set this up so it goes in one email with ideally a table of the above? Not individual emails per property.

 

When I go into the Body of the Emailer transformer I see there are values I could add in (that looks like lists. They have {}), but when I actually run the process these values are empty in the email. None of them appear. I am not far enough along in my FME journey to understand how lists work yet...

image 

I think I might need to use a counter or aggregator so only one feature hits the Emailer transformer, but that feature would need to contain all the data I want in the body of the email. I also think it might involve the Statistics calculator.

 

If anyone has any pointers or knows of a good resource to follow that would be awesome.

 

Thanks for your time!

I use the html report generator to create the email body.


If you only write a single feature type, you can use e.g. the AttributeManager to simply rename the first element, such that

_feature_types{0}.name --> name

You'll have to specify index 0 manually. You can then work with "name" as a regular attribute.

In addition to the HtmlReportGenerator, you can also use the XmlTemplater to generate full HTML for the Emailer. It can be useful for more advanced usage.


Thank you for your replies @nielsgerrits​ and @david_r​ . I will give this a go.


Reply