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 / How to access individu...
Power Automate
Answered

How to access individual elements within the array.

(0) ShareShare
ReportReport
Posted on by 10

How to access individual elements within the array.

 

So I have this simple array below. Which has two elements, title and url. Now I want to loop over this array and get the values of array[i].title and array[i].url. How to achieve this? 

 

Using apply to each I can easily loop over the array but I cannot access the individual elements. How to do this? Preferably in two different variables "title" and "url", which each iteration are set to the values of the corresponding index of the array.

 

My code; https://imgur.com/a/Nyhz2Oa


[
{ "title": "item 1",
"url" : "url 1"
},
{ "title": "item 2",
"url" : "url 2"
},
{ "title": "item 3",
"url" : "url 3"
}
]

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    within your loop use the expressions:

    item()['title']
    item()['url']

    That will access those elements.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard