2 weeks ago
For some reason I just cannot get the current item from a repeat loop. 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.
Solved! Go to Solution.
a week ago
I create a variable, set it as a List type. I then update the variable and set the contents from a split string:
In the For Each I reference the List variable:
Then I try to reference the current item in the loop branch:
But there is no data pill to reference.
I got there in the end. I had to use the List variable with the Index data pill:
2 weeks ago - last edited 2 weeks ago
Within the loop branch action, I can only see Index, Size, Is first and Is last data pills
The Foreach output looks like this in the job history:
{
Index: 0,
Is first: true,
Is last: false,
Item:
{
value: CN=o365_Office365_E5,OU=Office 365 Licensing,OU=Groups,OU=Common,OU=Enterprise,OU=xxx,DC=xxx,DC=xxx
}
}
2 weeks ago
What are you using as you input list when defining the For Each Repeat? 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. Step 22 represents the For Each Loop and those are all the data pills from inside that item I can select
a week ago
I create a variable, set it as a List type. I then update the variable and set the contents from a split string:
In the For Each I reference the List variable:
Then I try to reference the current item in the loop branch:
But there is no data pill to reference.
I got there in the end. I had to use the List variable with the Index data pill:
a week ago
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.