Skip to main content
Best Answer

FME Emailer and Multiple Attribute Lists

  • May 27, 2019
  • 3 replies
  • 155 views

dmerrick
Contributor
Forum|alt.badge.img+1

Hi,

I am trying to figure out how to have multiple lists in a single email.

 

I have a ID field for features missing invert elevations, being passed to a list builder, list concatenator, to an attribute manager (to insert some text before the ID's), and then the Emailer transformer.

I want to include the construction drawings each ID has, so I am using a DuplicateFilter and going through the same series of transformers but the emailer sends out 2 different emails, each with the different list.

 

I am testing on FME 2018.1 and will be publishing this to FME Server 2018.1 as well.

Thanks!

Best answer by nielsgerrits

The number of features reaching the Emailer will result in the same number of emails. So you have to merge the two features into one.

Several ways to do this, you could use a FeatureMerger (for incoming features from two different directions) or an Aggregator (two features from the same direction). In both cases the attributes or lists you want to merge must have different names to prevent one overwriting the other one.

mergefeaturessample2019.fmwt

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

nielsgerrits
VIP
Forum|alt.badge.img+64
  • Best Answer
  • May 28, 2019

The number of features reaching the Emailer will result in the same number of emails. So you have to merge the two features into one.

Several ways to do this, you could use a FeatureMerger (for incoming features from two different directions) or an Aggregator (two features from the same direction). In both cases the attributes or lists you want to merge must have different names to prevent one overwriting the other one.

mergefeaturessample2019.fmwt


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • May 28, 2019

The number of features reaching the Emailer will result in the same number of emails. So you have to merge the two features into one.

Several ways to do this, you could use a FeatureMerger (for incoming features from two different directions) or an Aggregator (two features from the same direction). In both cases the attributes or lists you want to merge must have different names to prevent one overwriting the other one.

mergefeaturessample2019.fmwt

Nice Job!


dmerrick
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 28, 2019

The number of features reaching the Emailer will result in the same number of emails. So you have to merge the two features into one.

Several ways to do this, you could use a FeatureMerger (for incoming features from two different directions) or an Aggregator (two features from the same direction). In both cases the attributes or lists you want to merge must have different names to prevent one overwriting the other one.

mergefeaturessample2019.fmwt

Thanks so much for the solution, I used the aggregator method on each section, before aggregating those into a single feature which I was able to stylize in the HTML Report Generator to send a single email with multiple sections and lines detailing any errors found.

 

Thanks!