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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Multiple Bucket Ids

(2) ShareShare
ReportReport
Posted on by 14
Hello, I have created a flow to update my planner from an Excel file, so that whenever I update my Excel, my planner does the same thing.  The thing is, I have multiple Buckets in Planner that I need to use with my tasks  to properly update them ex. ( to do, in process, done, cancelled, etc.). In the flow, when asked to put a bucket ID, you can only add one bucket ID, so the tasks update properly but only in one bucket. I want to know if there is a way I can have multiple Bucket ids options in the flow so my tasks update correctly to the right bucket, and save me time instead of me manually moving the tasks? Thank you 
 
 
Capture d'écran 2...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Verified answer
    CU29040129-0 Profile Picture
    15 on at
    Hello! This is a great use case. What happens here is that, by default, the Planner connector requires the Bucket ID (a long alphanumeric code, like a GUID) rather than the display name ("To do", "Done"). When you select a bucket from the dropdown menu, Power Automate hardcodes that specific ID.
    To make this dynamic, we need to apply some Solution Architecture practices to ensure the flow is scalable and maintainable.
    1. Governance and Architecture (Best Practices)
    Avoid Hardcoding: Do not use multiple nested conditions (If or Switch statements) with manually pasted Bucket IDs. If someone creates a new bucket in Planner tomorrow, your flow will break or require rewriting. The best approach is to fetch the IDs dynamically.
    Connector Governance (DLP): Ensure that both the Excel Online (Business) and Planner connectors are housed within the same Business Data Group in your tenant's DLP (Data Loss Prevention) policies. Otherwise, the automation will be blocked when trying to pass data between them.
    Service Account: Run this flow under a dedicated Service Account that has permissions to both the Excel file and the Planner plan. This prevents the automation from failing if the original flow creator leaves the organization or changes roles.
    2. Solution Design in Power Automate
    Instead of picking the bucket from the dropdown, you will pass the ID dynamically. Here is the architectural structure:
    Trigger and Read: Your flow reads the Excel row. Ensure you have a dedicated column for the target bucket (e.g., Nome_Bucket).
    List buckets: Add the Planner action called List buckets. Select your Plan. This retrieves all existing buckets and their hidden backend IDs.
    Filter array: Add the Filter array data operation action.
    In the From field, use the value array from the previous action.
    In the condition, set it to: Name (from Planner) is equal to Nome_Bucket (the dynamic content from your Excel column).
    Update/Create Task: In the action where you create or update the Planner task, go to the Bucket ID field, scroll to the bottom, and click on Enter custom value.
    Insert the following expression to grab the exact ID of the dynamically matched bucket:
    first(body('Filter_array'))?['id']
    3. Data Standardization at the Source
    For this architecture to work flawlessly, the data in Excel cannot have typos. I highly recommend creating a data validation rule or a helper column in Excel to ensure data integrity before the flow even reads it, using regional syntax with semicolons.
    For example, an Excel formula to categorize the status could look like this:
    =IF(Status_Tarefa="Cancelado"; "Cancelled"; "To Do")
    Hope this helps steer your project in the right direction!
  • Verified answer
    sumit_artesian Profile Picture
    261 on at
     
    To achieve this, you have to change your existing infrastructure slightly. In the Excel sheet where you are updating your tasks, add a column for Bucket and populate that column with each task's corresponding Bucket name.
     
    Now, in your Power Automate flow, whenever it gets triggered, add an Initialize Variable named "varBucketId" of type string and leave it blank. Now, add a Switch action and use the Bucket name that you received from your Excel in the trigger. Then you can create multiple cases for each bucket name and add a Set Variable action to assign that specific Bucket ID to the variable "varBucketId". And then you can update your Planner task by providing the Bucket ID from the variable varBucketId.
     
    If you cannot have your infra changed a little, please share more details on how it is currently set up, and I can suggest an alternative approach.
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
    If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like! 🩷
  • MA-29041641-0 Profile Picture
    14 on at
    @sumit_artesian & @CU29040129-0  Thank you both for the quick answers. It made a great difference.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard