0 votes
in Service Now by
Can you update a record without updating its system fields(like sys_updated_by, sys_updated_on) in Servicenow?

2 Answers

0 votes
by
edited by

Yes, you can do it by using a function autoSysFields() in your server side scripting.Whenever you are updating a record set the autoSysFields() to false.
example:

1

2

3

4

5

6

7

0 votes
by
Yes, you can do it by using a function autoSysFields() in your server-side scripting. Whenever you are updating a record set the autoSysFields() to false.

example:

var gr = new GlideRecord(‘incident’);

gr.query();

if(gr.next()){

gr.autoSysFields(false);

short_description = “Test from Examsmyntra” ;

gr.update();

}

Related questions

0 votes
asked Aug 31, 2020 in Service Now by AdilsonLima
0 votes
asked Aug 28, 2020 in Service Now by RShastri
...