How to write a script to identify hardcoded user sys id in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-24-2024 09:35 AM - edited ā06-24-2024 09:36 AM
I have a requirement to identify a hardcoded sys ids from a user table in workflow script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-24-2024 09:40 AM
Hi @Sai165,
please check below link:
https://www.servicenow.com/community/developer-forum/hard-coded-sys-id/m-p/1523079
Thank you, please make helpful if you accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-24-2024 10:07 AM - edited ā06-24-2024 10:16 AM
Hello Yashsvi I need a script to find the hardcoded sysIds values from workflow scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-24-2024 10:10 AM - edited ā06-24-2024 10:11 AM
All scripting in Workflows is stored in the "sys_variable_value" table, filter for "table=wf_activity" and check the contents of the "value" field.
You could perhaps even enhance the filter with filtering on "Variable" is "Script".
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field