How to update record as other user

Shalika
Tera Expert

I have 100 incidents to close using background script. How can I update and close these incidents as other user

7 REPLIES 7

Ahmmed Ali
Mega Sage

Hello @Shalika 

 

You want to update the incidents as system user or any other specific user?

 

for system user, there are multiple ways to do so using script. One simple way would be to create a one time running flow designer and set run as system user. In flow, you can query incident records and update the incidents without writing single line of code.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Hii, 
I do not want it to update it for system user. 

Hello, Then you have to create on-demand scheduled job and set run as user to set different user name.

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Abhijit4
Mega Sage

You can write scheduled job and add Run as user with another user.

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP