Change created by to system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2022 10:33 AM
Hi Everyone,
we have 2 catalog items, If HR submits the first one, it will create a new user in sys_user table, the second form is to update few attributes, When the user gets created in servicenow it is showing the persons name in created by. I want to change it as System.
Please help.
Thank you,
Pranav.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2022 08:19 AM
By what mechanism is it creating the user?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2022 08:21 AM
Hi Arjun,
Can you please check in dictionary on created by. If thats being handled in default value.
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2022 08:00 PM
Hello,
What you can do is to have the Record Producer perform the request through a Scheduled job that will execute 1 second later. That way, the creation is all being managed by the system and will be marked as created by the system.
Here's how to do it:
1. Create a Script include in the global scope. It contains two functions (Function 1 is meant to perform the actual user creation, and Function 2 is meant to queue Function 1 call in the scheduler).
2. Here's what it look like to queue the function call in the first function:
3. In your Record Producer, call the function requestAsyncCreation and pass any parameters that will be necessary to complete the account creation.
I hope it helps!
Alex