Skip to main content
Solved

Multiple attachment emailer


francis_m
Contributor
Forum|alt.badge.img+7

I have a simple workbench that read data from a table and produce a number of Excel files. Depending on the config, the output can be 2, 3 or more Excel files (via FeatureWriter). At the end, I want to send the result by email. If I use Emailer and put my attachment manually, it works perfecly, but if I want it to be more flexible, I want as many attachment as my workbench produce. Is it possible to concatenate the output dataset produced ? I tried but failed... any Idea ? No zip please!

Best answer by virtualcitymatt

It's an annoying problem for sure. I have run into this one too. In the end Zipping proved to be the best solution for my particular case.

Prior to Zipping I was using multiple Email transformers each with a different number of attachments, it's fine if you only have a limited number of attachments, however, if it literally could be any number then I really don't see a way around Zipping.

 

Unless of course creating multiple Sheets in a workbook would be an option? This is definitely doable in FME. The Sheet can be the FeatureTypeName and all can be written to the same xlsx file

 

Why is zipping for you not desirable?

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

3 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35
  • Celebrity
  • Best Answer
  • August 11, 2020

It's an annoying problem for sure. I have run into this one too. In the end Zipping proved to be the best solution for my particular case.

Prior to Zipping I was using multiple Email transformers each with a different number of attachments, it's fine if you only have a limited number of attachments, however, if it literally could be any number then I really don't see a way around Zipping.

 

Unless of course creating multiple Sheets in a workbook would be an option? This is definitely doable in FME. The Sheet can be the FeatureTypeName and all can be written to the same xlsx file

 

Why is zipping for you not desirable?


francis_m
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 11, 2020

Exactly what I did. One workbook (Excel), with multiple Sheets. But the problem is still there. We should be able to concatenate multiple output or use a "list" of object to attach to the email. Anyway, better to find a workaround... thanks!


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
francis_m wrote:

Exactly what I did. One workbook (Excel), with multiple Sheets. But the problem is still there. We should be able to concatenate multiple output or use a "list" of object to attach to the email. Anyway, better to find a workaround... thanks!

Couldn't agree with you more. Here vote on the idea I just created: https://community.safe.com/s/idea/0874Q000000j0DbQAI/detail


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