Hi all,
I am currently building a workflow were I manually trigger the creation of three buckets in planner.
Now I want to read the values inside an excel sheet to create tasks and assign them to their specific bucket.
My idea is in order to automate this workflow I need to compare the bucket name from the workflow with the bucket name inside the excel sheet and if they are identical the workflow should update the excel sheet with the bucket id.
The step after that is already working for me and all the tasks are getting created but they are not assigned to one of the three buckets.
Is there a more easy approach or can you tell me how I can create a logic with my idea?
Thanks in advance!
Update:
For whateve reason I cannot set this question to "answered" as it keeps loading to infinity after I choose an answer.
I will quote the correct answer here again to give more clarity:
From the way your flow is currently structured it can be assumed that you are intending to only run this flow once since you are creating the buckets before you are checking your Excel table.
However, if you want to be able to run this flow to create tasks and have them placed in specific buckets anytime you run the flow, you will need to adjust your flow logic.
Refer to
this section of the tutorial I linked in my original response it covers the logic that you need to add into your flow.
- List all Buckets in the Plan
- While looping through the current item, check to see if the Bucket name matches a Bucket in your plan
- If not, create a Bucket then add the task to the bucket. If one already exists, create the task and add it to that bucket.
Tip: Add a Column in your Excel sheet to track which items have already been added to Planner. This way when you run the flow again, you can filter out the items that have already been added (preventing duplicate tasks).
Hope that helps!