putting data from tpop to tfileinputmail

One Star

putting data from tpop to tfileinputmail

hi, forum,
I'm new in talend, changing from pentaho.
during my first attempts I tryed some steps and stopped now on tpop.
is it possible to get data directly from tpop-step, such as sender-email and *.mail filename ... to use it in the following step (f.i. tfileinputmail)
thanxx
Community Manager

Re: putting data from tpop to tfileinputmail

Hi
Yes, it is possible, tFileInputMail is always used with tPop together.
tPop_1--iterate--tFileInputMail
In the file name field of tFileInputMail, input:
((String)globalMap.get("tPOP_1_CURRENT_FILEPATH"))
((String)globalMap.get("tPOP_1_CURRENT_FILEPATH")) is a global variable, normally, press ctrl+blank in any text field, you will see a list of global variables and choose the proper one.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch 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