Coalesce without creating records

jared_wentzel
Kilo Contributor

I am trying to update our users with their room numbers from a excel file with coalesce on the User's ID. The problem is there are a lot of extra users on this Excel spread sheet and when I run the transform it is creating new users for every user id it cannot find a match to. How do I use the coalesce option to update existing records and not create new records?

9 REPLIES 9

nick_2586
Giga Contributor

write a script in transform map as below :



if(action == "insert")


{


ignore = true;


}


That kept it from updating any existing records as well.


Nisheeth's answer should work. We use that approach all the time.



What are your fieldmaps? Is there more than one coalesce field?


Is the ignore ... code in an OnBefore transform map script?


I just put it on the transform map itself, where should I put the code for it to work correctly?