When business rule triggered on table updated by is showing as username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 03:35 AM
Hi All,
We have business rule on one table. when the state of record moved to close, the child related list records has to be canceled. It is working but updated as showing as 'user name' instead of system. How can we set it as 'system'.
Thanks in Advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 03:43 AM
Hi @abed123
please find this link it may be helpful
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1113503
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 04:01 AM
Hi Nilesh,
Thanks for you reply.
I need updated by system. Instead of system it is showing as user ID of particular user/
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 04:11 AM
Hi @abed123
please verify by adding following script in you Br.
chlidtable.setValue('sys_updated_by', 'system');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 03:50 AM
Hi @abed123,
This functionality is OOB. You can try to create flow instead of business rule, there you can set run as system.
Else in BR you can override the updated by childIncidents.setValue('sys_updated_by', 'system');
If you find my answer helpful, please mark it correct.
Thanks,
Kanhaiya