Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] tFileInputMaul use mail parts

Highlighted
Five Stars

[resolved] tFileInputMaul use mail parts

Hi, 
i think i have a simple problem but i did not found the solution.



i get mail with tPOP and extract the tFileInputMail the mail part "Subject"



in the tLogRow i can see the correct value.
Now in the tSystem i try to run a programm and i want to pass the Subject-value from tFileInputMail, somethink like that:



but i can't find this value/variable in the list.
Is there a way to do that?

Thanks Dani


Accepted Solutions
Highlighted
Moderator

Re: [resolved] tFileInputMaul use mail parts

Hi,
The "suject" row from tfileinputmail is not global variable which cannot be found in existing global variable list.
Have you tried to use TalendHelpCenter:tFlowToIterate  component to iterate on the input data and generates global variables?
The work flow should be:tPop-->tfileinputmail-->tflowtoiterate-->tsystem. Here is a global variable:[font=noto, Helvetica, Arial, sans-serif]((String)globalMap.get("row1.subject")) in this list.[/font]
[font=noto, Helvetica, Arial, sans-serif]Best regards[/font]
[font=noto, Helvetica, Arial, sans-serif]Sabrina[/font]
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Highlighted
Moderator

Re: [resolved] tFileInputMaul use mail parts

Hi,
The "suject" row from tfileinputmail is not global variable which cannot be found in existing global variable list.
Have you tried to use TalendHelpCenter:tFlowToIterate  component to iterate on the input data and generates global variables?
The work flow should be:tPop-->tfileinputmail-->tflowtoiterate-->tsystem. Here is a global variable:[font=noto, Helvetica, Arial, sans-serif]((String)globalMap.get("row1.subject")) in this list.[/font]
[font=noto, Helvetica, Arial, sans-serif]Best regards[/font]
[font=noto, Helvetica, Arial, sans-serif]Sabrina[/font]
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

Highlighted
Five Stars

Re: [resolved] tFileInputMaul use mail parts

Hi Sabrina,
works perfect with tFlowToIterate, many thanks
Regards Dani
Highlighted
Moderator

Re: [resolved] tFileInputMaul use mail parts

Hi,
Thanks for your feedback. Feel free to let us know if there is any further help we can give.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog