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 / Create a String from a...
Power Automate
Suggested Answer

Create a String from an Array

(0) ShareShare
ReportReport
Posted on by 2,074 Season of Giving Solutions 2025
I have those 2 actions, one to Select the IDs of SharePoint Items, and one to build a semi-collon separated string from the array:-
 
 
 
 
now the results of the first action is a valid array, but the result of the Compose will be weired:-
 
 
where the result will be {"ID":1250} ... while i were planning to have 1250;
 
Any advice?
 
 
 
Categories:
  • Suggested answer
    bscarlavai33 Profile Picture
    810 Super User 2026 Season 1 on at
    There might be a fancier way but one way that will definitely work is to initialize an array variable called "Output" or something similar and then loop through the output of your "SelectAllNetworkIDs" compose. Within the loop, use an "Append to array" against "Output" and use the expression 
    items('Apply_to_each')['ID'].
     
    Finally, after the loop, use a Compose with the join expression.
     
    I tested it and I get the result you're looking for.
     
  • johnjohnPter Profile Picture
    2,074 Season of Giving Solutions 2025 on at
    @@bscarlavai33 i always try to avoid applytoeach as it is slow and consume a lot of requests.. i think using a Select should work, but not sure what i am doing wrong
  • bscarlavai33 Profile Picture
    810 Super User 2026 Season 1 on at
    Yeah I get that. Its usually not terrible if you're only doing transformations inside the loop and you have it using concurrency.
     
    The problem with Select is that it always returns an object and you just want a single value from each object. I'm not aware of a way to get multiple values from multiple objects at once without using a loop but someone might have a way.
  • Suggested answer
    David_MA Profile Picture
    15,528 Super User 2026 Season 2 on at
    You want to set it up like below. For the Select action, switch it to Map mode.
    The expression in the Compose action is join(body('Select'),'; ')
     
    Your output will be as shown below if I understand your goal correctly:

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard