Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Transform map to avoid insert if record matches

Swati k1
Tera Contributor

Hi All,

during dataload , we want to ignore insert record if the same record already existing in table , which way can we ignore inserting record ?can we update reject in choice action or need to write transform script?

 

find_real_file.png

 

5 REPLIES 5

You mean to say if record doesn't exist then create or else don't create/update right.? Try below code once keeping coalaece as true as well. Give a try.

 

if(action =="insert" || action == "update"){
    ignore = true;
}
Please hit like and mark my response as correct if that helps
Regards,
Musab