web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / cant loop through arra...
Power Automate
Unanswered

cant loop through array variable

(0) ShareShare
ReportReport
Posted on by 297

I'm Have a set of GUID's in a variable of type array. 

 

I have chosen the variable in a for each loop, but I dont have an option to use each variable independently? 

nick9one1_1-1703257478278.png

 

this is what the array looks like 

nick9one1_0-1703257330557.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    You need to use an expression item() or items()?['Apply_to_each_1']

     

    I would use the items()?['Apply_to_each_1'] since it is a more specific reference.

     

    You can also click "Current Item" in the dynamic content that is in Apply to each 1.

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @nick9one1 

    I agree with @wskinnermctc 

    See screen shot below:

    image.png

  • nick9one1 Profile Picture
    297 on at

    thanks, I think I'm nearly there.
    I have two items per row of the array. using items() give me the current row as seen in compose below.
    I'm not sure how to extract just the Id

    nick9one1_0-1703267236616.png

     

  • nick9one1 Profile Picture
    297 on at

    I think I've got it. Added another Parse JSON on Item()

    nick9one1_0-1703269870463.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard