- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 01:09 PM
Hi
In which table stored Run Script activities where I can find code? I can't find mentioned table.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 01:11 PM
Hi there,
I believe you are after the sys_variable_value table.
This is also described in one of my articles:
Finding references (sys_ids) in Workflows
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 02:50 PM
I assume you mean that you have a run script in a workflow where a function is being called that you can't find defined in the workflow itself? It is likely that any code you are looking for would be in a Script Include - sys_script_include.
It's also possible someone is calling some core code directly, which can be confusing. Without an example of what you're looking to find, I'd say search in the script includes and go from there.
If this was helpful or correct, please be kind and click appropriately!
Michael Jones - Proud member of the CloudPires Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 03:21 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 03:53 PM
I've never quite been able to find where this is stored but, the closest I can tell you is:
Go to the table wf_activity
Sort by Activity Definition = Run Script
Open one of the record.
Configure > Form Layout and add the field "Variables" to the form.
You should see the script for that activity.
Odd part is, you see it on the form, but in the list view it's empty.
Best I can offer!
If this was helpful or correct, please be kind and click appropriately!
Michael Jones - Proud member of the CloudPires Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 01:07 PM
thanks
still I cannot search by keyword but it's good solution