onBefore Transform Script on Coalesce field

elliott1philip
Tera Contributor

I have a transform map that has a field that I am coalescing on.   When I import my data if there are no changes on a record SN will ignore that record and continue to the next record.   If I have an onBefore transform script, will this run if the target record will be ignored.

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron

Onbefore script runs before target records is created, updated.



Regards,


Sachin


View solution in original post

4 REPLIES 4

sachin_namjoshi
Kilo Patron

Onbefore script runs before target records is created, updated.



Regards,


Sachin


Srinivas Balusu
Kilo Guru

Yes, It will run. Check by adding logs.


Srinivas Balusu
Kilo Guru

I can confirm it will Run. I even just tested the same scenario by adding a log using gs.log(source.u_name) in the onBefore script.



For the record inserts, updates and even for records which got ignored I found a log record.


Pradeep Sharma
ServiceNow Employee

Hello Phillip,



Please, refer the below blog post that will clear your doubts.


Validating the order of execution for transform map scripts by martygrinstead