How to write a script to identify hardcoded user sys id in workflow

Sai165
Tera Contributor

I have a requirement to identify a hardcoded sys ids from a user  table in workflow script

3 REPLIES 3

Yashsvi
Kilo Sage

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.

Sai165
Tera Contributor

Hello Yashsvi I need a script to find the hardcoded sysIds values from workflow scripts

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".