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 retrieve specif...
Power Automate
Answered

How to retrieve specific items in an array?

(0) ShareShare
ReportReport
Posted on by
There's a few notes to clarify first.
 
My current flow is a simple flow that pushes microsoft forms response data to sharepoint list. I currently just have:
 
"When a New Response is Triggered" --> "Get Response Details" --> "Create Item"
 
One of the questions for the survey is asking people to select their relevant shops in a multiple choice format where more than 1 answer can be provided.
 
For example:
Q: "Please select your shops"
 
1. Shop1 | ShopID1
2. Shop2 | ShopID2
3. Shop3 | ShopID3
 
The respondent could then select option 1 and 3, yielding ['Shop1 | ShopID1', 'Shop3 | ShopID3'].
 
My target answer is to retrieve the shop codes only: ['ShopID1', 'ShopID3'] and store it in my sharepoint list column "Shop ID". It is OK for there to be multiple Shop IDs in a single row.
 
I have tried to write an expression in the advanced parametres section for the Shop ID field of the Create Item step. I initally tried using the Last function to retrieve the shopID only of each response and then concatenating the IDs together afterwards but it did not work.
 
Could I please get some assistance on this? Thank you.
 
 
Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,708 Super User 2026 Season 1 on at
    Put the response details for the question in a Select:
     
    last(split(item(), ' | '))
     
    In a second step you can join the result:
    join(body('Select'), ',')
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard