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 / Build a comma seperate...
Power Automate
Unanswered

Build a comma seperated list of a sharepoint People/Group field which allow multiple selection

(0) ShareShare
ReportReport
Posted on by 3,514

We have the following:-

 

1) SharePoint list which have a field of type People/Group which allow multiple selection

2) Planner

 

now we want to loop through all the SharePoint items >> and for each item >> to create a planner task >> assign the planner task to the users defined inside the People/Group field... but i am not sure how i can implement the scenario of building a comma separated list of a SharePoint People/Group field which allow multiple selection, so i can define this comma separated list inside the Assigned User Ids's planner field:-

 

johnjohn123_0-1657821333932.png

 

 

any advice?

Thanks

Categories:
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @johnjohn123 

    assume you're going to get the email id's as list

    Shujaath_Khan_1-1657822172019.png

    and compose expression example as below

    concat(items('Apply_to_each')?['Email'],';',variables('varEmailList'))

     

    Thanks
    Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.

  • johnjohn123 Profile Picture
    3,514 on at

    @Shujaath_Khan thanks for the info,, but i do not want to build the comma separated list for all the items.. i want to build a separate comma separated list for each item.. so the loop through the GetItems should build the comma separated list for all the users inside the item's People/Group field >> then create a planner task.. so at the end we will have a planner task for each SharePoint item, and both the item and the planner task will have the same assigned to users.. i hope this explain my case..

  • johnjohn123 Profile Picture
    3,514 on at

    I also try this workflow:-

     

    1) get all the SP items + initialize an array var

     

    c1.PNG

     

    2) initialize string var + loop through the SP items + build an array of the assigned users' emails 

     

    c2.png

     

    3) build a comma separated var string based on the array, add the string var to the create planner task:-

     

     

    c3.png

     

     

    but when i run the flow i got this error "The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.":-

     

    johnjohn123_0-1657831627579.png

     

    any advice?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard