<?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 Issue with workflow condition based on a list collector  variable in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025512#M708</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get an yes or no answer on my workflow based on a list collector values, which are reference from a custom table.&lt;/P&gt;&lt;P&gt;What I need to achieve is to identify the values selected in the list collector and based on these values do something like dot walking to get which change group is related to that value in the table.&lt;/P&gt;&lt;P&gt;This is my script, but so far does not return any value, can someone help me and put me in the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;answer = ifScript();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; ifScript() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; collector = current.variables.my_variable.toString(); //get variable name from catalog item&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; list = collector.split(&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; i = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;; i &amp;lt; list.length; i++) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; gr = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'my_custom_table'&lt;/SPAN&gt;&lt;SPAN&gt;); //access the custom table that store the values from List collector&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'u_change_group=dcfb023edb4d1340439d14a05b9619c5'&lt;/SPAN&gt;&lt;SPAN&gt;); //define the change group with sys_ID&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (gr.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(list[i]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;'yes'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;'no'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 22 Aug 2024 22:19:21 GMT</pubDate>
    <dc:creator>Sue143</dc:creator>
    <dc:date>2024-08-22T22:19:21Z</dc:date>
    <item>
      <title>Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025512#M708</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get an yes or no answer on my workflow based on a list collector values, which are reference from a custom table.&lt;/P&gt;&lt;P&gt;What I need to achieve is to identify the values selected in the list collector and based on these values do something like dot walking to get which change group is related to that value in the table.&lt;/P&gt;&lt;P&gt;This is my script, but so far does not return any value, can someone help me and put me in the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;answer = ifScript();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; ifScript() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; collector = current.variables.my_variable.toString(); //get variable name from catalog item&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; list = collector.split(&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; i = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;; i &amp;lt; list.length; i++) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; gr = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'my_custom_table'&lt;/SPAN&gt;&lt;SPAN&gt;); //access the custom table that store the values from List collector&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'u_change_group=dcfb023edb4d1340439d14a05b9619c5'&lt;/SPAN&gt;&lt;SPAN&gt;); //define the change group with sys_ID&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (gr.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(list[i]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;'yes'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;'no'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Aug 2024 22:19:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025512#M708</guid>
      <dc:creator>Sue143</dc:creator>
      <dc:date>2024-08-22T22:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025518#M709</link>
      <description>&lt;P&gt;Try this, if you know what specific sys_id you are looking for you can just use indexOf.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;answer = ifScript();

function ifScript() {
    var collector = current.variables.my_variable.toString(); //get variable name from catalog item
    var list = collector.split(",");
    if (list.indexOf('dcfb023edb4d1340439d14a05b9619c5') &amp;gt; -1)
        return 'yes';
    else
        return 'no';
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 22:44:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025518#M709</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2024-08-22T22:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025519#M710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The first issue is with the addQuery - you can either use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;gr.addQuery('u_change_group', 'dcfb023edb4d1340439d14a05b9619c5'); //define the change group with sys_ID
&lt;/LI-CODE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;gr.addEncodedQuery('u_change_group=dcfb023edb4d1340439d14a05b9619c5'); //define the change group with sys_ID
&lt;/LI-CODE&gt;
&lt;P&gt;Secondly, there is likely a logic problem as the script will end with the first list collector entry.&amp;nbsp; It's a little unclear what you're trying to do with the list collector values, but if you are wanting to loop through all of the list collector entries, then return the value if ANY of them match the change group, it would look something like this:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;answer = ifScript();
 
function ifScript() {
    var answer = 'no';
    var collector = current.variables.my_variable.toString(); //get variable name from catalog item
    var list = collector.split(",");
    for (var i = 0; i &amp;lt; list.length; i++) {
        var gr = new GlideRecord('my_custom_table'); //access the custom table that store the values from List collector
        gr.addQuery('u_change_group', 'dcfb023edb4d1340439d14a05b9619c5'); //define the change group with sys_ID
        if (gr.get(list[i]))
            answer = 'yes';
    }
    return answer;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 22:52:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025519#M710</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2024-08-22T22:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025562#M711</link>
      <description>&lt;P&gt;Hi Brad, thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your code but is still not working.&lt;/P&gt;&lt;P&gt;The workflow does not end up in an error, but the if condition returns true every time, even when it shouldn't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to loop through, not all, but only the values selected by the user from the list collector and decide with an if condition statement if these selected values have as change group the one defined on the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;('u_change_group', 'dcfb023edb4d1340439d14a05b9619c5')&lt;/PRE&gt;&lt;P&gt;and if not, the answer to the if statement should be no, but this is not happening in the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the workflow I am building depends on this if condition to create a task and assign to this change group in case it is "true". Otherwise, this should be skipped. But right now it is creating the task even when the change group of the value select is other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 01:59:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025562#M711</guid>
      <dc:creator>Sue143</dc:creator>
      <dc:date>2024-08-23T01:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025563#M712</link>
      <description>&lt;P&gt;Hi Brian, thank you for your response but this is not enough to solve my issue, the list collector is getting the values from a custom table.&lt;/P&gt;&lt;P&gt;The sys_id is not of the value available in the list collector but of the change group associated with the value of the list collector.&lt;/P&gt;&lt;P&gt;I need to get the value from the list collector and access it on the custom table to find out if the change group assigned is the one of the sys_id.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 02:06:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025563#M712</guid>
      <dc:creator>Sue143</dc:creator>
      <dc:date>2024-08-23T02:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025909#M714</link>
      <description>&lt;P&gt;The next step is to temporarily add some log lines to the script so you can see what is happening.&amp;nbsp; It also sounds like this would be better with a more conventional approach - return all of the list collector records, then test each for the condition match.&amp;nbsp; Also, I shouldn't have used 'answer' as a script variable since it is already a part of the if activity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;answer = ifScript();
 
function ifScript() {
    var collector = current.variables.my_variable.toString(); //get variable name from catalog item
    workflow.info('collector = ' + collector); //verify the variable was retrieved
    var gr = new GlideRecord('my_custom_table'); //access the custom table that store the values from List collector
    gr.addQuery('sys_id', 'IN', collector);
    gr.query();
    while (gr.next()) {    
        workflow.info('Record found ' + gr.sys_id + ' Group = ' + gr.u_change_group); //change this to a more descriptive field on the custom table
        if (gr.getValue('u_change_group') == 'dcfb023edb4d1340439d14a05b9619c5') { //define the change group with sys_ID
            workflow.info('Group matched');            
            return 'yes'; //stop running the script when the first group match is found
        }
    }
    workflow.info('No list collector record had a matching group');    
    return 'no'; //if no groups matched, take the No path
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure to test this workflow change with a newly-submitted record.&amp;nbsp; You can view these logs on the Log tab while viewing the context from the Related Link at the bottom of the RITM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 17:50:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3025909#M714</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2024-08-23T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026249#M719</link>
      <description>&lt;P&gt;If the list collector is pointing to a custom table then the only thing you can select is from that custom table. If the custom table has change group in it and that is all you can select then the all the sys_id in the list collector will be from a change group.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:20:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026249#M719</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2024-08-23T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026436#M720</link>
      <description>&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the time you taking to help me, but it still not working.&lt;/P&gt;&lt;P&gt;The logs shows that the code works fine to find a match for the collector on the table, but it also say "group matched" for all the 3 if conditions on my workflow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suellen2_0-1724434188936.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/381326i31123A9542476268/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suellen2_0-1724434188936.png" alt="suellen2_0-1724434188936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;each if condition matches a different change group (different sys_id), so it shouldn't match all unless I it is selected multiple values in the list collector, which I haven't for testing purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suellen2_1-1724434371832.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/381328i034DC4BE7739FF63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suellen2_1-1724434371832.png" alt="suellen2_1-1724434371832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this is the log results, each record (role) only have a change group, so it should return true for only one of the if conditions&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 17:33:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026436#M720</guid>
      <dc:creator>Sue143</dc:creator>
      <dc:date>2024-08-23T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026447#M721</link>
      <description>&lt;P&gt;So just to confirm, you are using the same script in all three if activities, only changing this line to a different sys_id?&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-javascript"&gt;&lt;CODE&gt;        if (gr.getValue('u_change_group') == 'dcfb023edb4d1340439d14a05b9619c5'); //define the change group with sys_ID
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I just noticed I'm missing a { on this line - I just corrected it in the full script above, and added group to the log.&amp;nbsp; Not sure if that accounts for this behaviour, or if you previously corrected this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 17:51:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026447#M721</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2024-08-23T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026458#M722</link>
      <description>&lt;P&gt;Thank you Brad!!!!!&lt;/P&gt;&lt;P&gt;I actually didn't noticed either, after correcting the missing comma the code works.&lt;/P&gt;&lt;P&gt;and yes, I am using the same script for all the 3 if conditions just modifying the sys_id to match each change group.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 18:01:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026458#M722</guid>
      <dc:creator>Sue143</dc:creator>
      <dc:date>2024-08-23T18:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with workflow condition based on a list collector  variable</title>
      <link>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026741#M724</link>
      <description>&lt;P&gt;Great to hear, happy to help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="2"&gt;Connect with me &lt;A href="https://www.linkedin.com/in/brad-bowman-321b1567/" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/brad-bowman-321b1567/&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2024 14:00:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/issue-with-workflow-condition-based-on-a-list-collector-variable/m-p/3026741#M724</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2024-08-24T14:00:25Z</dc:date>
    </item>
  </channel>
</rss>

