Skip to main content
Question

Find which email attachment is excel file

  • December 12, 2017
  • 1 reply
  • 13 views

When the workspace gets an email from the server, the attachment comes in as an array/list.

"email_publisher_attachment{1}"

How do I search within the attachment list to find which is an excel file, then use that as the source attribute for the feature reader?

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.

1 reply

brianatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • December 12, 2017

Hi @gallupnroxy,

 

 

One way to do this is with the ListSearcher transformer. This is super powerful and can pick out your excel files from the list via a simple search or even a regular expression. See the documentation here: http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/listsearcher.htm

 

 

Once it has found the matches, the Index Attribute will be populated with the spot in the list that your excel file was found.

 

 

Give it a go!