I am trying to email owners of a task in planner when it is completed as well as a few other select individuals. Is there a variable I can use that pulls all assigned users to the task? I saw I can pull the User IDs but am unable to then send an email to that ID.
You can use the User Ids and lookup their email addresses with a Get user profile (v2) action. You can append the result to an array variable and join it together with a semi colon character so it can be used in your email action.
Below is an example of that approach
1. An array variable is initialized, this is to temporary store the AssignedTo array with the mails retrieved
2. The apply to each loops through the assignments of the task
3. The Get user profile (v2) uses the userId field of each of these assignments items
4. The Append to array variable action uses the mail of the retrieved user and appends it to the variable
5. The join action (outside the loop) turns the array variable value into a text value which will be in the format useremail01;useremail02;useremail03
Was this reply helpful?YesNo
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.