How to set the "closed_by" to "System"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 08:38 AM
Kinda like this:
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 04:42 PM
Hi jglez,
You could use the local admin account.
Hope that helps.
Regards,
Wind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 07:29 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 08:21 PM
@jglez1 If you really wish to achieve this then I recommend using a flow to close the ticket and run the flow as system.
For more information, please refer to https://developer.servicenow.com/dev.do#!/learn/courses/washingtondc/app_store_learnv2_flowdesigner_...