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 / Get first, second and ...
Power Automate
Unanswered

Get first, second and thirt position of array

(0) ShareShare
ReportReport
Posted on by 121

I have an array generated by the select statement with a multichoice field from a share point list, and I need to store 3 different variables, the first, second and third position. For the first position I do it through first(body('Select')) and it works correctly, but I don't know how to get the second and last position, I tested it using last and it gives me an error.

 

Can help me?!

Thanks

Imagem1.png

 

 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,191 Super User 2026 Season 1 on at

    This post will do a better job of explaining it, but basically you need to use the following type of expression in your Compose actions:

     

    outputs('Get_item')?['body']?['Materials'][1]?['Value']

     

    In the above, 'Materials' represent the internal field name containing your values of your multi-choice column. The number 1 actually represents the second item returned. To get the first item you would use zero (0), second item 1 and third item 2.

  • VictorIvanidze Profile Picture
    13,079 on at

    body('Select')[0] - first

    body('Select')[1] - second

    body('Select')[2] - third

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 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard