cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carl__D
Helper I
Helper I

Join String from with an Apply to Each

Hello, 

 

I am using an HTTP Request to get all Group Owners and Parsing to get the DisplayName.

There are multiple owners per group and I'd like to get a single string of them all to add to a SharePoint list column.

 

My issue is where there is say 7 owners (image below) I can't get all the owners display names in one line of text.

I've tried Join and Concat in Compose and the below Select and Join options but am clearly missing something as I can only get the single string 7 times instead of the 7 strings joined together!

 

Any help appreciated. 

Thanks. 

 

Carl__D_1-1643199040588.png

 

1 REPLY 1
DamoBird365
Super User
Super User

Hi @Carl__D 

 

Here you go.  Using the same graph api call, you can get owners and create an array of display names using the select action.

 

FROM: outputs('Send_an_HTTP_request')?['body']?['value']

MAP: item()?['DisplayName']

 

DamoBird365_0-1643225278887.png

You can then create a string and join as you see fit e.g. join(body('Select'),';')

 

Make sure you enable text mode on the select.

 

Please consider accepting my answer as a solution if it helps to solve your problem.

Cheers
Damien

Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,211)