One Star

[resolved] Run if Trigger condition for e-mail

Hello,
In the below attached ETL screenshot, I want to send an e-mail to personnel when there is a record/ multiple records in rejected table.
In the trigger I have specified the condition as
(globalMap.get("tAS400Output_2_NB_LINE")) != null.
When I run the ETL e-mail is being sent even when there are 0 records in rejected table.
Please advice.
1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: [resolved] Run if Trigger condition for e-mail

Hi
The global variable ((Integer)globalMap.get("tAS400Output_1_NB_LINE")) returns an int value, the expression can be (for example):
((Integer)globalMap.get("tAS400Output_1_NB_LINE"))==0
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
3 REPLIES
Moderator

Re: [resolved] Run if Trigger condition for e-mail

Hi anut7,
I don't see any attached ETL screenshot, could you check it?
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.
Community Manager

Re: [resolved] Run if Trigger condition for e-mail

Hi
The global variable ((Integer)globalMap.get("tAS400Output_1_NB_LINE")) returns an int value, the expression can be (for example):
((Integer)globalMap.get("tAS400Output_1_NB_LINE"))==0
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Run if Trigger condition for e-mail

Thanks Shong. It worked.