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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

cant loop through array variable

(0) ShareShare
ReportReport
Posted on by 315

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,290 Most Valuable Professional on at

    @nick9one1 

    I agree with @wskinnermctc 

    See screen shot below:

    image.png

  • nick9one1 Profile Picture
    315 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
    315 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard