how to make a updated by field system or admin

Rahul Tiwari1
Tera Contributor

i am getting a user id in updated by field while running a flow  how to make updated by field show a system.

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

If not script then

I would use another flow that runs as 'System Administrator', and loop that one in as a subflow. I don't think there is an option within one flow to change 'run as' for a specific action.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

3 REPLIES 3

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Rahul Tiwari1 ,

If you are using script in that then add one line as below

gr.autoSysFields(false); // Replace gr with your GlideRecord object

Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

i am using flow 

 

Gunjan Kiratkar
Kilo Patron
Kilo Patron

If not script then

I would use another flow that runs as 'System Administrator', and loop that one in as a subflow. I don't think there is an option within one flow to change 'run as' for a specific action.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy