cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
niklasjegg
Super User
Super User

Add Team Members from Comma separated string

Hello, 

i want to add Team members to a team. Multiple Team members tho. My Variable for the Teams members looks like this:

test@email;Test2@email;test3@email   

 

and so on. Is this Possible with a string? How can i achieve this otherwise.

 

Thanks in advance!

3 REPLIES 3
VJR
Super User
Super User

Hi @niklasjegg ,

 

Are you able to split the string by semicolon ; where you will get separate members and then add them one by one?

Hi @VJR 

 

i have thought of another solution that i just came up with.

 

i am Creating a Collection from my person combobox.selecteditems

I am am patching this collection to my SP list multi select person column.

after that i am applying a for each loop to add each team members email .

 

i think this will work i was just about to test it

Okay, just in case that approach has any issue OR something for future reference for some other purpose.

You can use a Split expression by a delimiter (in your case semicolon) then the "for each" will give individual items of the string.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,681)