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 / Power Automate getting...
Power Automate
Unanswered

Power Automate getting value from an array

(0) ShareShare
ReportReport
Posted on by

Here is my Power Automate flow –

SBT2_0-1659131924418.jpeg

 

SBT2_1-1659131924423.jpeg

 

TheIndex is initialized to 0 and Alpha to 1 and each is then incremented in Apply to Each step below.

SBT2_2-1659131924430.jpeg

 

FilterArray looks as expected.

SBT2_3-1659131924438.jpeg

 

 

Get-Name works as expected and return True for the array element body('FilterArray')[variables('TheIndex')]

 

Set Name does not work. Name is set to body('FilterArray')[variables('Alpha')] rather than the value of body('FilterArray')[variables('Alpha')]

 

SBT2_4-1659131924443.jpeg

 

The results are:

 

SBT2_5-1659131924445.jpeg

 

SBT2_6-1659131924452.jpeg

 

Excel results: These are the various iterations I tried. The correct result should be Stuart which is FilterArray[3].

SBT2_7-1659131924455.jpeg

 

Categories:
I have the same question (0)
  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @SBT2 , 

    You are putting the expression directly into the variable Value field, this will not work. 

     

    You need to put the below expression from the expression tab into the variable, then only it will work. 

     

    vivekpande18_0-1659148447749.png

     

    vivekpande18_1-1659148632806.png

     

     

    Thanks

    Vivek Pande

     

  • SBT1 Profile Picture
    11 on at

    Thanks for the reply. That is how I entered the expression. Is this what you meant?

    SBT1_0-1659219389501.png

     

  • SBT1 Profile Picture
    11 on at

    I was wrong, I had just pasted the expression into the field. When I entered in the expression dialog it worked. Thanks.

  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    You can mark this thread as Accept as solution and close it

     

    Thanks

    Vivek Pande

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
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard