- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 06:43 PM
Can you please tell me who is the executing user of the script?
We believe that the login user is the executing user for client-side scripts.
So who is the executing user for the server-side scripts?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 07:02 PM
Hello @Takumi Togashi
Greetings!
This is an interesting question.
When a user performs an action in the ServiceNow application, such as submitting a form, clicking a button, or making an API request, client-side scripts may be used to handle and validate the user's input or perform certain actions on the browser side.
Then the System processes the user's request and runs server-side scripts (JavaScript) to handle business logic, interact with databases, perform calculations, access external system etc.
If you're asking what will be the sys_updated_by value, it will be user in case if it is business rule.
If it is scheduled job, it will be system. (we can also select run as admin).
If it's Rest API, it will be set as Integration user.
Please hit the thumb and Mark as correct based on Impact!!
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 07:02 PM
Hello @Takumi Togashi
Greetings!
This is an interesting question.
When a user performs an action in the ServiceNow application, such as submitting a form, clicking a button, or making an API request, client-side scripts may be used to handle and validate the user's input or perform certain actions on the browser side.
Then the System processes the user's request and runs server-side scripts (JavaScript) to handle business logic, interact with databases, perform calculations, access external system etc.
If you're asking what will be the sys_updated_by value, it will be user in case if it is business rule.
If it is scheduled job, it will be system. (we can also select run as admin).
If it's Rest API, it will be set as Integration user.
Please hit the thumb and Mark as correct based on Impact!!
Kind Regards,
Ravi Chandra.