Transform script log update

rog
Giga Contributor

Hi,

I need help with the transform script logs. Currently I am updating a bulk of assets and I need to put in logs to check.

I need logs to check which assets have been updated and which assets have not been updated in the transform.

Any suggestions are welcome.

ty.

14 REPLIES 14

karthik73
Mega Guru

Your import set log (insert/update/skipped) should tell you the number of updated rows. For more detailed logging, you can do an 'onAfter' transform script . onAfter scripts run after transforming each row http://wiki.servicenow.com/index.php?title=Transform_Map_Scripts#gsc.tab=0


rog
Giga Contributor

Hi Karthik,



Thanks for the reply.



I am aware of the thing you have mentioned.



But what I am looking here is something that helps me keep track of the updated records through logs in the transform script so that it is easy to track the duplicate records.



Thanks.


Hi Roger,



I am not sure, if i understand your request. Shouldn't your transform map omit the duplicate records? Can you explain a little more on what you mean by tracking duplicate records?


rog
Giga Contributor

Hi Karthik,



The requirement is to put a log to know all the updated records. Yes, it can be known through import set but I need a log so that I can export the log of updated records and keep it as reference.



Please let me know if need any further explanation.



Thanks.