Table stored Run Script activities in workflow

miro2
Mega Sage

Hi

In which table stored Run Script activities where I can find code? I can't find mentioned table. 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

View solution in original post

11 REPLIES 11

Michael Jones -
Giga Sage

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!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Thanks for response @Michael Jones - CloudPires 

To clarify my question, that's not what I mean. I would like to know how to find some part of code by keyword directly in table stored run script, for example script CONTAINS <word I'm looking for>

Something like that 

find_real_file.png

Michael Jones -
Giga Sage

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!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

thanks @Michael Jones - CloudPires 

still I cannot search by keyword but it's good solution