How to abort action on specific row if condition is met

Alon Grod
Tera Expert

Hi,

I have the field u_mail in my transform and it supposed to populate the 'mail' field on the sys_user table.
This field is also my Coalesce in the transform map.
Im using source script in order to populate the mail field in the sys_user table, How can I achieve that?

if(source.u_mail.includes('idfts')) {

    skip current row and do nothing;
}

else {
 return source.u_mail;
}

 

 

1 ACCEPTED SOLUTION

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Alon Grod ,

 

try the below:

 

if(source.u_mail.includes('idfts')) {
return;
}
else {
target.mail = source.u_mail;
}

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

1 REPLY 1

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Alon Grod ,

 

try the below:

 

if(source.u_mail.includes('idfts')) {
return;
}
else {
target.mail = source.u_mail;
}

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect