cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mac22
Frequent Visitor

Create bucket after checking if it allready exists

Hello,

I'm trying to create Planner tasks from an Excel File by using Flow. I have one column named User-ID in the file. I would like to create a bucket for each User-ID in this column and then assignee the task to the bucket. How should I do to check if the bucket already exists before creating it and how can I assign the task to the bucket by name(User-ID)?

 

Is it also possible to remove a bucket who dosen't contain any task?

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Create bucket after checking if it allready exists

Hi @Mac22,

 

There are List buckets action to get all buckets and the List tasks action could get all tasks, you could compare the ID of the bucket with the list of tasks, if this bucket has a task, you can sign it in the excel file.

Annotation 2019-12-30 133321.png

 

Unfortunately, there is no action could delete the bucket directly, so you should delete the bucket manually if you find this bucket is empty.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4

Re: Create bucket after checking if it allready exists

Since there are multiple buckets that may already exist and you need to compare them to multiple User-IDs, you will need to loop through each Bucket Name in the Plan to see if it matches any existing User-IDs.

 

Check Planner buckets against User-ID.pngCheck Planner buckets against User-ID

 

 

 

 

If your list of Buckets and User-IDs keep growing, you may need to enable "Concurrency Control" on the "Apply to Each". This is located under the 3 dots and then select "Settings". This will allow thing to run quicker by running things in parallel.

 

Power Automate - Concurrency Control.pngPower Automate - Concurrency Control

 

 

 

Community Support
Community Support

Re: Create bucket after checking if it allready exists

Hi @Mac22,

 

There are List buckets action to get all buckets and the List tasks action could get all tasks, you could compare the ID of the bucket with the list of tasks, if this bucket has a task, you can sign it in the excel file.

Annotation 2019-12-30 133321.png

 

Unfortunately, there is no action could delete the bucket directly, so you should delete the bucket manually if you find this bucket is empty.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Community Support
Community Support

Re: Create bucket after checking if it allready exists

Hi @Mac22,

 

Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Mac22
Frequent Visitor

Re: Create bucket after checking if it allready exists

Thank you very much for your answers. It also helpt me realise that creating a new bucket wasn't the best solution, wouldn't be very user friendly in the end with 50+ buckets. 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,816)