How to set the "closed_by" to "System"?

jglez1
Mega Guru

Kinda like this:

jglez1_1-1717688261892.jpeg


I think I can do grCase.closed_by = "sys_id_of_user" but System isn't a user in our sys_user table. Any advice?

Thanks!

3 REPLIES 3

Wind0004
Mega Guru

Hi jglez,

 

You could use the local admin account. 

Hope that helps. 

Regards,

Wind

Maik Skoddow
Tera Patron
Tera Patron

Apart from the technical perspective, the field "Closed by" always should reference to a real user to indicate who has made the closing step and why. If in your case this is performed by any technical process like an integration you could set a technical user (you might already have for your integration) and insert its Sys ID, That way it is more clear by whom/what a record was closed.

Sandeep Rajput
Tera Patron
Tera Patron

@jglez1 If you really wish to achieve this then I recommend using a flow to close the ticket and run the flow as system. 

Screenshot 2024-06-07 at 8.48.36 AM.png

For more information, please refer to https://developer.servicenow.com/dev.do#!/learn/courses/washingtondc/app_store_learnv2_flowdesigner_...