Forum Discussion
Create planner task when new list item is created - issue with multiple "assigned to"
- Sep 16, 2023
Hi cinna103 ,
you are creating a new task for each value of your "AssignedTo" field contains entries for each person you added into that field.
If you want to create a single planner task that is assigned to multiple persons, your need to enter their E-Mail addresses separated by a semicolon into that fieldSo, first create a new array variable "Recipients", then use the "Append to Array Variable" action and enter your "Assigned to" field. It will automatically surround that with an "Apply to each".
After that create a "Join" action and enter the "Recipients" variable as the value for "From" and a semicolon as the value for "Join with".
Finally Use the "Output" value from your "Join" action in the "Assigned User Ids" field of the "Create a task" action.Best Regards,
Sven
Hi cinna103 ,
you are creating a new task for each value of your "AssignedTo" field contains entries for each person you added into that field.
If you want to create a single planner task that is assigned to multiple persons, your need to enter their E-Mail addresses separated by a semicolon into that field
So, first create a new array variable "Recipients", then use the "Append to Array Variable" action and enter your "Assigned to" field. It will automatically surround that with an "Apply to each".
After that create a "Join" action and enter the "Recipients" variable as the value for "From" and a semicolon as the value for "Join with".
Finally Use the "Output" value from your "Join" action in the "Assigned User Ids" field of the "Create a task" action.
Best Regards,
Sven