cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Removing assigned members

Hello

 

As the title suggests, i'm having a problem where i can't remove assigned members from a task on flow ( the flow works in the following way: Task is updated on outlook calendar and updates the planner task on planner)

 

At the moment it's doing everything ( including adding members) but i can't seem to delete members.

Basically i delete the  members on outlook but it doesn't affect planner at all.

 

Is there any way to do it? If yes how?

 

print 4.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
rocamp
Community Support
Community Support

Hi @Anonymous ,

 

The only way I have been able to do this is by the following flow.

  1. Use the 'When an event is modified (v3)'  trigger U
  2. Use the 'Get a task' planner action to get the assignment details
  3. Add an 'Apply to each' action and use the 'assignments' dynamic content from the 'Get a task' planner action
  4. Inside the 'Apply to each' add the 'Get user' Azure Active Directory action and use the 'assignments Assigned To User Id' dynamic content. We are doing this to get the email address of the users assigned to the task because the 'Get a task' planner task only provides user IDs and not email addresses of users.
  5. Still inside the 'Apply to each' add the 'Unassign users from a task' Planner action and add the specific task and put the 'User Principal Name' dynamic content in the 'Remove assigned users' field
  6. Finally, outside the 'Apply to each', add the 'Update a task' Planner action and put the 'Required attendees' and 'Optional attendees' dynamic content from the 'When an event is modified (V3)' Outlook trigger

This will remove all users from the task and re-add all again based on the current users required and optional in the event. This is the only way I have been able to determine how to do this.

 

Capture.JPGCapture1.JPG

View solution in original post

8 REPLIES 8
rocamp
Community Support
Community Support

Hi @Anonymous ,

 

I think you are looking for the 'Unassign users from a task' action

Capture.JPG

Can you show me what your trigger for this Flow is?

rocamp
Community Support
Community Support

Hi @Anonymous ,

 

I did some testing, and you should be able to remove users with the Update a task action as well. It worked for me. But, the Flow needs to be triggered in order to run and populate the Remove assigned users field with the user that you remove the from Outlook. That's why I want to know what your trigger is.

Anonymous
Not applicable

Hi @rocamp 

Sorry for the late reply, i had left the office for the day already.

 

So the flow is constructed as this:

 

print ultimate fase.PNG

 

The variables are to get the task ID (i attached the planner task id onto the title) and as so put the id on the task ID area on update task

Anonymous
Not applicable

@rocamp would you have any idea on how to do it? been trying to snatch member's emaisl with "get user email " function and some other ones and non seem to work.

 

Also the trigger is "When an event is changed)

rocamp
Community Support
Community Support

Hi @Anonymous ,

 

What is your process for removing users from the event so I make sure I reproduce this correctly?

Anonymous
Not applicable

@rocamp My process to remove users from the event is going on the event on outlook callendar, press the event, edit it  and on the members pressing x on them and remove them as such, and then i save.

rocamp
Community Support
Community Support

Hi @Anonymous ,

 

The only way I have been able to do this is by the following flow.

  1. Use the 'When an event is modified (v3)'  trigger U
  2. Use the 'Get a task' planner action to get the assignment details
  3. Add an 'Apply to each' action and use the 'assignments' dynamic content from the 'Get a task' planner action
  4. Inside the 'Apply to each' add the 'Get user' Azure Active Directory action and use the 'assignments Assigned To User Id' dynamic content. We are doing this to get the email address of the users assigned to the task because the 'Get a task' planner task only provides user IDs and not email addresses of users.
  5. Still inside the 'Apply to each' add the 'Unassign users from a task' Planner action and add the specific task and put the 'User Principal Name' dynamic content in the 'Remove assigned users' field
  6. Finally, outside the 'Apply to each', add the 'Update a task' Planner action and put the 'Required attendees' and 'Optional attendees' dynamic content from the 'When an event is modified (V3)' Outlook trigger

This will remove all users from the task and re-add all again based on the current users required and optional in the event. This is the only way I have been able to determine how to do this.

 

Capture.JPGCapture1.JPG

Anonymous
Not applicable

Thank you very much, it worked perfectly like that

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,184)