How to stop the "Updated time" from being updated.

dfry123
Mega Expert

Hello,

 

I am wondering if there is a way to stop the updating time and updated by from being updated when using import sets. I know you can use "autoSysFields(false);" when using scripts but it doesnt seem to be working for import sets.

 

Any help will be appriciated!

 

Thank You!

1 ACCEPTED SOLUTION

On the transform map form, there's a checkbox "run script".   Check the box and an input box will open up in which you can enter code that will run for every record in the import set.   You can do any kind of server side processing necessary in there.   Seems like maybe you have some field mappings that you're coalescing on, and those records are being updated.   Well, instead of that, just write a GlideRecord query in the script, and if you find the record existing, use the autoSysFields function to suppress the sys field updates.


View solution in original post

6 REPLIES 6

all right!


Aditya Telideva
ServiceNow Employee
ServiceNow Employee

GlideRecord.autoSysFields(false) is the option for you