<?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 Get count of selected values in watchlist field using flow designer in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352422#M4241</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working in a requirement to capture the count of values in watchlist field using flow designer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using input type as array.string and array.object but its not working.&lt;/P&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 16:47:49 GMT</pubDate>
    <dc:creator>ranjanak</dc:creator>
    <dc:date>2025-08-14T16:47:49Z</dc:date>
    <item>
      <title>Get count of selected values in watchlist field using flow designer</title>
      <link>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352422#M4241</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working in a requirement to capture the count of values in watchlist field using flow designer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using input type as array.string and array.object but its not working.&lt;/P&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 16:47:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352422#M4241</guid>
      <dc:creator>ranjanak</dc:creator>
      <dc:date>2025-08-14T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get count of selected values in watchlist field using flow designer</title>
      <link>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352445#M4242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/184913"&gt;@ranjanak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try flow variable (Integer type) and get the watchlist count as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.Declare flow variable integer type Integer&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HemanthM1_0-1755191303853.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/463049iEBF784848B1D4E05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HemanthM1_0-1755191303853.png" alt="HemanthM1_0-1755191303853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Use set flow variable step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HemanthM1_1-1755191390769.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/463050i885325496DF8EBB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="HemanthM1_1-1755191390769.png" alt="HemanthM1_1-1755191390769.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HemanthM1_2-1755191477114.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/463051i0099DBCD066B1E49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HemanthM1_2-1755191477114.png" alt="HemanthM1_2-1755191477114.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HemanthM1_3-1755191513415.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/463052i8C0D3746B959CAD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="HemanthM1_3-1755191513415.png" alt="HemanthM1_3-1755191513415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 17:12:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352445#M4242</guid>
      <dc:creator>Hemanth M1</dc:creator>
      <dc:date>2025-08-14T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get count of selected values in watchlist field using flow designer</title>
      <link>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352450#M4243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/184913"&gt;@ranjanak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The watchlist stores a comma separated list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Use the existing record (Look up record) and compute the count with inline script when setting a variable.&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;Add “Set flow variables” (create an Integer variable like watchlistCount) or “Update record” to store the count somewhere.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;In the value for watchlistCount, click the Script icon (fx) and try below script:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function() {
  var s = (fd_data.current.watch_list || '').toString().trim();
  if (!s) return 0;
  // Remove empty entries and whitespace, then count
  var arr = s.split(',').map(function(x){return (x||'').trim();}).filter(function(x){return x;});
  return arr.length;
})();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please go through below how to iterate watchlist in flow designer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/itsm-forum/add-users-to-watchlist-via-flow-designer-rather-than-replace/td-p/706201" target="_self"&gt;Add users to watchlist in fd&lt;/A&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;Thanks,&lt;BR /&gt;&lt;STRONG&gt;Bhimashankar H&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------------------------------------------------------------------------------------&lt;BR /&gt;If my response points you in the right directions, please consider marking it as 'Helpful' &amp;amp; 'Correct'. Thanks!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 17:16:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3352450#M4243</guid>
      <dc:creator>Bhimashankar H</dc:creator>
      <dc:date>2025-08-14T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get count of selected values in watchlist field using flow designer</title>
      <link>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3353462#M4255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/430450"&gt;@Hemanth M1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your help, I followed your steps and it is working.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2025 17:28:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/get-count-of-selected-values-in-watchlist-field-using-flow/m-p/3353462#M4255</guid>
      <dc:creator>ranjanak</dc:creator>
      <dc:date>2025-08-16T17:28:32Z</dc:date>
    </item>
  </channel>
</rss>

