web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create bucket after ch...
Power Automate
Unanswered

Create bucket after checking if it allready exists

(1) ShareShare
ReportReport
Posted on by

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

 

Categories:
I have the same question (0)
  • PowerBack19 Profile Picture
    679 on at

    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-IDCheck 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 ControlPower Automate - Concurrency Control

     

     

     

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    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.

  • v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    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

  • Community Power Platform Member Profile Picture
    on at

    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. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard