<?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>topic Re: Not able to iterate through array of string inside repeat for each loop in Community Chat</title>
    <link>https://systematic.workato.com/t5/community-chat/not-able-to-iterate-through-array-of-string-inside-repeat-for/m-p/8203#M490</link>
    <description>&lt;P&gt;No Response so I will take a shot at it:&lt;/P&gt;&lt;P&gt;To fix this:&lt;/P&gt;&lt;P&gt;1. Make sure `attachment_ur_ls` is an actual array and not a string. If it's a string, parse it first (e.g., `JSON.parse()`).&lt;BR /&gt;2. Pass the variable `attachment_ur_ls` directly into the "Repeat for each" loop.&lt;BR /&gt;3. Test with a dummy array like `["url1", "url2"]` to ensure the loop works.&lt;/P&gt;&lt;P&gt;If this still doesn’t work, check if the variable is properly scoped or formatted for the loop to recognize it.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 17:34:30 GMT</pubDate>
    <dc:creator>timwolfe</dc:creator>
    <dc:date>2024-11-15T17:34:30Z</dc:date>
    <item>
      <title>Not able to iterate through array of string inside repeat for each loop</title>
      <link>https://systematic.workato.com/t5/community-chat/not-able-to-iterate-through-array-of-string-inside-repeat-for/m-p/8183#M485</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The payload I am getting as a response is -&amp;nbsp;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
Message: "&amp;lt;div class="zd-comment" dir="auto"&amp;gt;&amp;lt;span style="opacity: 1;"&amp;gt;&amp;lt;img src="https://cybergrants1720708638.zendesk.com/attachments/token/TbvvjGtyhrIe3xX29VG3gQtQT/?name=image.png"&amp;gt;&amp;lt;img src="https://cybergrants1720708638.zendesk.com/attachments/token/Ch1NuHKgwfEDSLKF4C3wWGaSh/?name=image.png"&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I extracted all the HTTPs urls from the above payload and stored them in a string variable '&lt;SPAN class=""&gt;&lt;STRONG&gt;attachment_ur_ls&lt;/STRONG&gt;'. I printed the variable value and it is showing -&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"attachment_ur_ls": [
		"https://cybergrants1720708638.zendesk.com/attachments/token/TbvvjGtyhrIe3xX29VG3gQtQT/?name=image.png",
		"https://cybergrants1720708638.zendesk.com/attachments/token/Ch1NuHKgwfEDSLKF4C3wWGaSh/?name=image.png"
	]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to iterate through each of the link present in the above variable. I used a Repeat for each but unable to select the above variable inside &lt;STRONG&gt;Input list&lt;/STRONG&gt; field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG&gt;attachment_ur_ls&lt;/STRONG&gt; looks like an array of string, and I want to iterate through each link present inside the variable and take actions accordingly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Please help me in fixing this, it's on priority!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 07:26:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/not-able-to-iterate-through-array-of-string-inside-repeat-for/m-p/8183#M485</guid>
      <dc:creator>samarth_nigam</dc:creator>
      <dc:date>2024-11-11T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to iterate through array of string inside repeat for each loop</title>
      <link>https://systematic.workato.com/t5/community-chat/not-able-to-iterate-through-array-of-string-inside-repeat-for/m-p/8203#M490</link>
      <description>&lt;P&gt;No Response so I will take a shot at it:&lt;/P&gt;&lt;P&gt;To fix this:&lt;/P&gt;&lt;P&gt;1. Make sure `attachment_ur_ls` is an actual array and not a string. If it's a string, parse it first (e.g., `JSON.parse()`).&lt;BR /&gt;2. Pass the variable `attachment_ur_ls` directly into the "Repeat for each" loop.&lt;BR /&gt;3. Test with a dummy array like `["url1", "url2"]` to ensure the loop works.&lt;/P&gt;&lt;P&gt;If this still doesn’t work, check if the variable is properly scoped or formatted for the loop to recognize it.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 17:34:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/not-able-to-iterate-through-array-of-string-inside-repeat-for/m-p/8203#M490</guid>
      <dc:creator>timwolfe</dc:creator>
      <dc:date>2024-11-15T17:34:30Z</dc:date>
    </item>
  </channel>
</rss>

