cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SaschaBerner
Helper II
Helper II

Adding more than one member to a team

Hello everybody,

I want to create a flow, that looks up lines in an excel list, creates a team with the team name in the first row and the team members in another row. With one team member this is easy. But is there a way to have a list of team members (separed by a semicolon, or something else) automatically imported? 

I think I have seen somewhere a video where is said that I just need to separte the users by a semicolon, but even in test this doesn't work:

SaschaBerner_0-1660236329580.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User
Super User

Hello @SaschaBerner ,

the action can add ony 1 user at a time. To add multiple users you'll need an 'Apply to each' with the users array as the input and then add them one by one. Add the users in a 'Compose' action, then use split(...) to turn them into an array.

split(emails, ';')

Use it as an input of the 'Apply to each' action, and inside add the 'Add a member to a team' action, with the expression below:

item()

 image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

2 REPLIES 2
tom_riha
Super User
Super User

Hello @SaschaBerner ,

the action can add ony 1 user at a time. To add multiple users you'll need an 'Apply to each' with the users array as the input and then add them one by one. Add the users in a 'Compose' action, then use split(...) to turn them into an array.

split(emails, ';')

Use it as an input of the 'Apply to each' action, and inside add the 'Add a member to a team' action, with the expression below:

item()

 image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

That is working! Thank you!

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,755)