<?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: Reference the current item in a repeat loop in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12389#M4741</link>
    <description>&lt;P&gt;I create a variable, set it as a List type.&amp;nbsp; I then update the variable and set the contents from a split string:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091229.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2742iA840A154F01F6AB9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091229.png" alt="Screenshot 2026-07-13 091229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the For Each I reference the List variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091433.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2744iA515CB3C8FC0FB1F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091433.png" alt="Screenshot 2026-07-13 091433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I try to reference the current item in the loop branch:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091831.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2745i794D0091FB98DBF6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091831.png" alt="Screenshot 2026-07-13 091831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But there is no data pill to reference.&lt;/P&gt;&lt;P&gt;I got there in the end.&amp;nbsp; I had to use the List variable with the Index data pill:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 092053.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2746i3D6AD41CBB9ADC52/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 092053.png" alt="Screenshot 2026-07-13 092053.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2026 08:23:37 GMT</pubDate>
    <dc:creator>Waldy</dc:creator>
    <dc:date>2026-07-13T08:23:37Z</dc:date>
    <item>
      <title>Reference the current item in a repeat loop</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12367#M4735</link>
      <description>&lt;P&gt;For some reason I just cannot get the current item from a repeat loop.&amp;nbsp; In the job history, you can see a data pill called Item with the content that I want to extract, but I just cannot refer to that in an action within the loop.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2026 10:26:46 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12367#M4735</guid>
      <dc:creator>Waldy</dc:creator>
      <dc:date>2026-07-10T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the current item in a repeat loop</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12368#M4736</link>
      <description>&lt;P&gt;Within the loop branch action, I can only see Index, Size, Is first and Is last data pills&lt;/P&gt;&lt;P&gt;The Foreach output looks like this in the job history:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;Index: 0,&lt;BR /&gt;Is first: true,&lt;BR /&gt;Is last: false,&lt;BR /&gt;Item:&lt;BR /&gt;{&lt;BR /&gt;value: CN=o365_Office365_E5,OU=Office 365 Licensing,OU=Groups,OU=Common,OU=Enterprise,OU=xxx,DC=xxx,DC=xxx&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2026 11:05:36 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12368#M4736</guid>
      <dc:creator>Waldy</dc:creator>
      <dc:date>2026-07-10T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the current item in a repeat loop</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12370#M4737</link>
      <description>&lt;P&gt;What are you using as you input list when defining the For Each Repeat?&amp;nbsp; Because when I use a data pill that is a list object, I can see this when I am trying to select an item from the current data item in the loop.&amp;nbsp; Step 22 represents the For Each Loop and those are all the data pills from inside that item I can select&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 620px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2735i102701C9460BA7FE/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2026 22:10:15 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12370#M4737</guid>
      <dc:creator>rharkness</dc:creator>
      <dc:date>2026-07-10T22:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the current item in a repeat loop</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12389#M4741</link>
      <description>&lt;P&gt;I create a variable, set it as a List type.&amp;nbsp; I then update the variable and set the contents from a split string:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091229.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2742iA840A154F01F6AB9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091229.png" alt="Screenshot 2026-07-13 091229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the For Each I reference the List variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091433.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2744iA515CB3C8FC0FB1F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091433.png" alt="Screenshot 2026-07-13 091433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I try to reference the current item in the loop branch:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 091831.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2745i794D0091FB98DBF6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 091831.png" alt="Screenshot 2026-07-13 091831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But there is no data pill to reference.&lt;/P&gt;&lt;P&gt;I got there in the end.&amp;nbsp; I had to use the List variable with the Index data pill:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-13 092053.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2746i3D6AD41CBB9ADC52/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-07-13 092053.png" alt="Screenshot 2026-07-13 092053.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 08:23:37 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12389#M4741</guid>
      <dc:creator>Waldy</dc:creator>
      <dc:date>2026-07-13T08:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the current item in a repeat loop</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12391#M4742</link>
      <description>&lt;P&gt;Sorry I'm late to the party, but as you discovered the for each loop doesn't handle primitive arrays very well. That way you solved it is probably the most efficient way in terms of task usage.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 16:22:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/reference-the-current-item-in-a-repeat-loop/m-p/12391#M4742</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-07-13T16:22:27Z</dc:date>
    </item>
  </channel>
</rss>

