<?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 How to add previous value and current value without erasing the previous value in list collector var in SecOps forum</title>
    <link>https://www.servicenow.com/community/secops-forum/how-to-add-previous-value-and-current-value-without-erasing-the/m-p/2824718#M11211</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an requirement like there are two fields&amp;nbsp; network which is basically multi choice having choice values like ab1,ab2,ab3,ab4 and another field business which is reference from department table which is list collector variable we can add multiple values in that. I have written one code if network value is "ab1" then business field should update like "cus1" and if someone changes the network to "ab2" then business field should show previous value like "cus1" along with new value "cus2".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I written is not working as expected whenever network values change business field previous value is getting override with new value , suppose if i change from "ab1" to "ab2" then business field only showing new populated value it is not showing previous value along with new value. can you please help me out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VamsiKrishna_0-1707794411664.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/329551iE806B92769B97880/image-size/medium?v=v2&amp;amp;px=400" alt="VamsiKrishna_0-1707794411664.png" title="VamsiKrishna_0-1707794411664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 03:20:19 GMT</pubDate>
    <dc:creator>Vamsi Krishna</dc:creator>
    <dc:date>2024-02-13T03:20:19Z</dc:date>
    <item>
      <title>How to add previous value and current value without erasing the previous value in list collector var</title>
      <link>https://www.servicenow.com/community/secops-forum/how-to-add-previous-value-and-current-value-without-erasing-the/m-p/2824718#M11211</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an requirement like there are two fields&amp;nbsp; network which is basically multi choice having choice values like ab1,ab2,ab3,ab4 and another field business which is reference from department table which is list collector variable we can add multiple values in that. I have written one code if network value is "ab1" then business field should update like "cus1" and if someone changes the network to "ab2" then business field should show previous value like "cus1" along with new value "cus2".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I written is not working as expected whenever network values change business field previous value is getting override with new value , suppose if i change from "ab1" to "ab2" then business field only showing new populated value it is not showing previous value along with new value. can you please help me out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VamsiKrishna_0-1707794411664.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/329551iE806B92769B97880/image-size/medium?v=v2&amp;amp;px=400" alt="VamsiKrishna_0-1707794411664.png" title="VamsiKrishna_0-1707794411664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 03:20:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/secops-forum/how-to-add-previous-value-and-current-value-without-erasing-the/m-p/2824718#M11211</guid>
      <dc:creator>Vamsi Krishna</dc:creator>
      <dc:date>2024-02-13T03:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add previous value and current value without erasing the previous value in list collector</title>
      <link>https://www.servicenow.com/community/secops-forum/how-to-add-previous-value-and-current-value-without-erasing-the/m-p/2825428#M11212</link>
      <description>&lt;P&gt;If 'department' is the name of the list field, then use &lt;STRONG&gt;current.department += ',' + 'super secret value');&lt;/STRONG&gt; to append the new value to the existing value.&amp;nbsp; A list field stores as its value a comma-separated list of sys_ids.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 13:04:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/secops-forum/how-to-add-previous-value-and-current-value-without-erasing-the/m-p/2825428#M11212</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2024-02-13T13:04:06Z</dc:date>
    </item>
  </channel>
</rss>

