[resolved] Run if Trigger condition for e-mail

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.

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

All 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.

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch