cancel
Showing results for 
Search instead for 
Did you mean: 

Flow > Planner - Assign a task to multiple people simultaneously

When creating a task in Planner, allow assigning to multiple people simultaneously.

 

(Currently, I have to action to create each task (assigned to one person), and then have an action to update the just-created task to add another assignee. If I wanted a third assignee, I'd have to create yet another update action)

Status: New
Comments
Level 8

How do you get the UserId for those people?  I'm stuck there.

Level: Powered On

Hi ChrstnMchl -

 

Before your "Create Task" action, you have to have an action from "Office 365 Users" connector, "Get User Profile".  Put in the email of the person who's profile you want to get, and then their UserID is something available as an output from that.  I've included 2 screenshots below - the first one shows the "Get User Profile" action and the create task action.  The second screenshot shows the details of the "Create Task" action with the userID being filled in as dynamic content.


1st Screenshot:

 

2nd Screenshot:

Level 8

Thank you so much!  I was looking in Teams and in Planner trying to find where it would be listed.  That fills in the blanks!

 

Does it keep the User until you do another look up?

 

Also, how are you getting your date Output?  Is there any formula to it?

 

Sorry to pick your brain so much - I have been trying to find these answers and feel like I keep dancing around them.

I have several projects that I need to put the same tasks and assignments in but with different dates.  I have a manual button that I can enter the Plan name in a text field and I have finally successfully set it up so that it the condition works to find that Plan and add the tasks.  I didn't have the name part figured out, still don't have the dates, and it all goes to the To Do bucket to be moved to the right bucket manually.  I'd love to have it go to the right bucket with the right person with the right due date.  Since I am using a variable for the Plan to get the Plan Id I do not have a list of buckets. I could probably use the same type of condition I am to find the plan to find the bucket though.

 

I feel close to brilliance here.  If only I didn't have a real job I am supposed to be doing when I am trying to figure this out...

Level 8

Oh, the other thing I have trying to figure out is how to create a new Plan based on a new event added to a calendar, and then have it add buckets too.  I think that is further down the road though.

Level: Powered On

Yes, there is a formula for the date.  I have a text input on my manual trigger for the date, and then I have an action - Connector: Data Operations, Action: Compose.  The formula in my 'Compose' Action is:

@formatdatetime(triggerBody()['text'],'yyyy-MM-ddThh:mm:ssZ')

 

You can do multiple user lookups and use the results anytime later in the flow.  Screenshot below:

user_profiles.png

 

Since I'm only using one plan, I don't have the added issue of trying to use a variable for the Plan name, I just select the plan from the dropdown for "Plan ID" and then once I've selected that, I can use the "Bucket ID" dropdown to select which bucket within the plan.  There is a "List Buckets" action, and you may be able to use that to help what you want, but I haven't played around with it.

 

I'm also not sure if you can create a new plan dynamically with Flow.  I don't think that there's an action for that (or "Create Bucket") yet, but you can propose it here on Uservoice and maybe it'll get implemented.