<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Searching the script field(s) of workflow activities in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597259#M254185</link>
    <description>&lt;P&gt;To benefit others:&lt;BR /&gt;&lt;BR /&gt;Yes, you can do this search.&lt;BR /&gt;1) In the Navigator filter box, type sys_variable_value.list &amp;lt;-- This takes you to the table to search&lt;BR /&gt;2) Click on the Filter wizard icon to create a custom filter&lt;BR /&gt;--- Table (document) is wf_activity AND&lt;BR /&gt;--- Variable.Column Name contains script' OR &lt;BR /&gt;------ Variable.Type.Name contains 'script' AND&lt;BR /&gt;--- Value contains [whatever you are searching for]&lt;BR /&gt;&lt;BR /&gt;Although, I could not find Variable.Type.Name in the filter wizard. Variable.Type didn't show to have any related fields.&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 12 Jul 2013 12:29:34 GMT</pubDate>
    <dc:creator>Michael Domke</dc:creator>
    <dc:date>2013-07-12T12:29:34Z</dc:date>
    <item>
      <title>Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597258#M254184</link>
      <description>&lt;P&gt;Is there a way to search the various script fields in workflow activities? I need to verify the use of certain table/field uses in workflow activity scripts.&lt;BR /&gt;&lt;BR /&gt;For example, search all workflow activity scripts to see which ones contain "u_software" somewhere in the script. To do this manually will be very time consuming as well as the potential for blurry eyed oversight mistakes.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:06:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597258#M254184</guid>
      <dc:creator>Michael Domke</dc:creator>
      <dc:date>2013-07-11T22:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597259#M254185</link>
      <description>&lt;P&gt;To benefit others:&lt;BR /&gt;&lt;BR /&gt;Yes, you can do this search.&lt;BR /&gt;1) In the Navigator filter box, type sys_variable_value.list &amp;lt;-- This takes you to the table to search&lt;BR /&gt;2) Click on the Filter wizard icon to create a custom filter&lt;BR /&gt;--- Table (document) is wf_activity AND&lt;BR /&gt;--- Variable.Column Name contains script' OR &lt;BR /&gt;------ Variable.Type.Name contains 'script' AND&lt;BR /&gt;--- Value contains [whatever you are searching for]&lt;BR /&gt;&lt;BR /&gt;Although, I could not find Variable.Type.Name in the filter wizard. Variable.Type didn't show to have any related fields.&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jul 2013 12:29:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597259#M254185</guid>
      <dc:creator>Michael Domke</dc:creator>
      <dc:date>2013-07-12T12:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597260#M254186</link>
      <description>&lt;P&gt;this was a life saver today &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; thanks &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2014 11:56:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597260#M254186</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-05-13T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597261#M254187</link>
      <description>&lt;P&gt;This also save me a bunch of time. &amp;nbsp; Thank you!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:04:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597261#M254187</guid>
      <dc:creator>Jace Benson</dc:creator>
      <dc:date>2014-10-09T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597262#M254188</link>
      <description>&lt;P&gt;This might help you. The inspiration was this post ofcourse&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A class="jive_macro_thread jive_macro" title="Workflow Script Searcher" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=b2be76a5db58dbc01dcaf3231f961991"&gt;Workflow Script Searcher&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:18:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597262#M254188</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-10-09T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597263#M254189</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Can we find the table &amp;nbsp; of the workflow or the name of the workflow from this table '&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;sys_variable_value'&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jan 2018 15:05:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597263#M254189</guid>
      <dc:creator>Sharique Azim</dc:creator>
      <dc:date>2018-01-26T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597264#M254190</link>
      <description>&lt;P&gt;I've upload the XML, how do I use it?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 15:44:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597264#M254190</guid>
      <dc:creator>lekskr</dc:creator>
      <dc:date>2018-02-19T15:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597265#M254191</link>
      <description>&lt;P&gt;Seven years later and still providing value! Thank you sir! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 19:12:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597265#M254191</guid>
      <dc:creator>mikegrynch</dc:creator>
      <dc:date>2020-03-26T19:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597266#M254192</link>
      <description>&lt;P&gt;I have use this tool as well, but it only allow me to search 1 workflow at a time.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 21:41:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597266#M254192</guid>
      <dc:creator>lekskr</dc:creator>
      <dc:date>2020-04-03T21:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597267#M254193</link>
      <description>&lt;P&gt;I agree 7 yrs later! I will share this tips with my team.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 21:43:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597267#M254193</guid>
      <dc:creator>lekskr</dc:creator>
      <dc:date>2020-04-03T21:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597268#M254194</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 21:45:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597268#M254194</guid>
      <dc:creator>lekskr</dc:creator>
      <dc:date>2020-04-03T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597269#M254195</link>
      <description>&lt;P&gt;This is awesome, thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 06:54:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597269#M254195</guid>
      <dc:creator>Rajshekhar Pau1</dc:creator>
      <dc:date>2020-06-16T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597270#M254196</link>
      <description>&lt;P&gt;awesome, thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 11:27:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597270#M254196</guid>
      <dc:creator>Sksunny6131</dc:creator>
      <dc:date>2020-06-17T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597271#M254197</link>
      <description>&lt;P&gt;This was a great solution.&amp;nbsp; Just wanted I needed.&amp;nbsp; But I did make some enhancements so I thought I would share&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;renamed&amp;nbsp;ScriptUtils to&amp;nbsp;WorkflowSearcherScriptUtils to me a more unique name&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Added logic to the rendered results to include&lt;/LI&gt;
&lt;LI&gt;Added the ability to search a specific workflow or search all published workflows&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;UL&gt;
&lt;LI&gt;direct link to the workflow editor for this result&lt;/LI&gt;
&lt;LI&gt;added a note if the workflow is currently checked out by someone else&lt;/LI&gt;
&lt;LI&gt;is this workflow in an open update set for someone else&lt;/LI&gt;
&lt;LI&gt;the table name the workflow is running on&lt;/LI&gt;
&lt;LI&gt;What catalog forms will be affected so you can retest (and if its not active its red)&lt;/LI&gt;
&lt;LI&gt;A code preview showing the line above and below the matched result&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/190043i8E75A2E54679168D/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 14:25:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597271#M254197</guid>
      <dc:creator>seanphelan</dc:creator>
      <dc:date>2021-07-04T14:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597272#M254198</link>
      <description>&lt;P&gt;Great tool.&amp;nbsp; I&amp;nbsp;had to modify the query in the&amp;nbsp;WorkflowSearcherScriptUtils at line 30 to get it to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not working:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cExist.addEncodedQuery('document=wf_activity^document=wf_activity^variable.elementLIKEcondition^ORvariable.internal_type.nameLIKEcondition^ORvariable.elementLIKEscript^ORvariable.internal_type.nameLIKEscript^valueLIKE' + searchText + '^document_key=' + wfActivities.getValue('sys_id'));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working:&lt;/P&gt;
&lt;P&gt;cExist.addEncodedQuery('document=wf_activity^valueLIKE' + searchText + '^document_key=' + wfActivities.getValue('sys_id'));&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 19:43:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597272#M254198</guid>
      <dc:creator>Alex Bennett</dc:creator>
      <dc:date>2021-07-19T19:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597273#M254199</link>
      <description>&lt;P&gt;Below Script search all the workflows to find a keyword&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Use this Fix script to search workflows for a keyowrd&lt;/P&gt;
&lt;P&gt;var keyword = 'PROVIDE_YOUR_KEYWORD';&lt;BR /&gt;var query = 'valueLIKE'+keyword;&lt;BR /&gt;var arr = [];&lt;BR /&gt;var tbl = new GlideRecord('sys_variable_value');&lt;BR /&gt;tbl.addEncodedQuery(query);&lt;BR /&gt;tbl.query();&lt;BR /&gt;while(tbl.next()){&lt;BR /&gt; var wftbl = new GlideRecord('wf_activity');&lt;BR /&gt; wftbl.addQuery('sys_id', tbl.document_key);&lt;BR /&gt; wftbl.query();&lt;BR /&gt; if(wftbl.next()){&lt;BR /&gt; arr.push(wftbl.workflow_version.name);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;for(i=0; i&amp;lt; arr.length; i++){&lt;BR /&gt; gs.print(arr[i]);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 10:47:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597273#M254199</guid>
      <dc:creator>Nagarjun</dc:creator>
      <dc:date>2021-07-30T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597274#M254200</link>
      <description>&lt;P&gt;Below Script search all the workflows to find a keyword&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Use this Fix script to search workflows for a keyowrd&lt;/P&gt;
&lt;P&gt;var keyword = 'PROVIDE_YOUR_KEYWORD';&lt;BR /&gt;var query = 'valueLIKE'+keyword;&lt;BR /&gt;var arr = [];&lt;BR /&gt;var tbl = new GlideRecord('sys_variable_value');&lt;BR /&gt;tbl.addEncodedQuery(query);&lt;BR /&gt;tbl.query();&lt;BR /&gt;while(tbl.next()){&lt;BR /&gt;var wftbl = new GlideRecord('wf_activity');&lt;BR /&gt;wftbl.addQuery('sys_id', tbl.document_key);&lt;BR /&gt;wftbl.query();&lt;BR /&gt;if(wftbl.next()){&lt;BR /&gt;arr.push(wftbl.workflow_version.name);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;for(i=0; i&amp;lt; arr.length; i++){&lt;BR /&gt;gs.print(arr[i]);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 10:47:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597274#M254200</guid>
      <dc:creator>Nagarjun</dc:creator>
      <dc:date>2021-07-30T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597275#M254201</link>
      <description>&lt;P&gt;This is exactly what I need it. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 19:32:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597275#M254201</guid>
      <dc:creator>maricielo</dc:creator>
      <dc:date>2021-08-12T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597276#M254202</link>
      <description>&lt;P&gt;Thanks @Michae, This is a really helpful solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:38:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597276#M254202</guid>
      <dc:creator>vikas_sakhare</dc:creator>
      <dc:date>2021-09-24T06:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the script field(s) of workflow activities</title>
      <link>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597277#M254203</link>
      <description>&lt;P&gt;Can somebody update this?&amp;nbsp; &amp;nbsp;I dont see "Column Name" nor do I see "Variable.Type.Name" when trying to build this filter.&amp;nbsp; On Quebec.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:26:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/searching-the-script-field-s-of-workflow-activities/m-p/1597277#M254203</guid>
      <dc:creator>jdestef</dc:creator>
      <dc:date>2021-10-19T14:26:02Z</dc:date>
    </item>
  </channel>
</rss>

