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
1 REPLY
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