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

Use input in Forms as bucket name, and create new task in Planner under the right bucket

I have created the form in Forms and buckets in Planner:

 

In the form:

     1. Select the Plan:

         o Plan A

         o Plan B

         o Plan C

 

In the Planner, buckets are:

         Plan A                 Plan B                  Plan C

 

In the Flow:

         Create a Task:

             Plan Id: ---

             Title: ---

             Bucket Id: (I selected "Select the Plan:", and it does not work. I figured that the input needs to be the Id instead of name, but I do not know how to do that)

 

I would like the flow to take the input and create new task under the corresponding bucket.

Thank you very much for the help!

 

Best.

9 REPLIES 9
Super User II
Super User II

The Microsoft Forms connector is fairly limited. You'd have to likely created an array from the List of response notifications to create variables for the Planner Create/Update actions. The start of your Flow could look something like this:ListAllResponses.PNG

You'd then create variables from the list of responses to possibly pass through to the Planner actions. Or, you could creat a SharePoint List for each response, and query the List for the Planner create/update tasks. This template, Add a SharePoint item and post message to Team on Microsoft Form submission is a good start. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Those steps are already set up. I am now trying to create a task in the "Apply to each" box

Anonymous
Not applicable

1.PNG2.PNGCapture.PNG

Move the List buckets step outside of the Apply to each, then you could put the ID from the List buckets step into the Bucket Id form of the Create a task step. Even if this doesn't fix it, it will greatly improve the overall performance of your Flow. Do not put anything in an apply to each loop that does not need to be in it.

If you expand/show what is in the Variable and the Compose 2 steps, we could likely assist further. You may also want to review this How to Avoid Do-Until Loops and Improve Performance blog post.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Thank you for the suggestion, I'll make the change.


I want to dynamically set which bucket to put each task in, so getting a list of bucket IDs would not help automatically decide which ID string to put into the "Bucket Id".

 

There's a similar problem posted in 2017 and was unsolved:

https://powerusers.microsoft.com/t5/Building-Flows/Dynamically-specify-Planner-plan-and-buckets-usin...

 

Thank you for the help!

 

Best.

You could run parallel branches with conditions for each Planner Bucket, and determine the Bucket based upon keywords or responses from within the form. Example:FormsCreateTaskParallelBucket.PNG

If the condition passes, create the Task in the desired Bucket and if the the condition doesn't pass, do nothing.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

I'll try that out! Thank you!

@AnonymousHow did you go with this? I'm trying to do exactly the same thing - if you've already solved this it will save me some time!

Regular Visitor

I had this issue as well and I came up with a working solution.  Please tell me what you think of it.

 

First, I need to init a variable that I will later use as the BucketID.  You could hard code this to a bucketId to default to.  To be clear, you would need to get the bucketID while doing a test of the flow.  It would not be a bucket name.

 

RockWoo_0-1606151800393.png

 

In the 'Apply to each' loop, I have a condition to match the Bucket Name to a response in the Form.

 

RockWoo_1-1606151873834.png

 

Assuming you have entered things correctly, the variable should be updated with the proper BucketID.  Then use this variable when you create a task.

 

RockWoo_2-1606152044455.png

 

Slight maintenance headache - if you update the Buckets in the Planner, you will have to remember to update the options in the Form.

 

 

 

 

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (9,451)