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

How to get Planner bucket ID by using bucket name?

Hello all,

 

I am trying to pull a planner bucket ID from the corresponding name of the bucket. So far, my screenshot below only pulls the ID of the first bucket in the list. I need to do this multiple times for different buckets, but I cannot due to this. Any idea how to fix? Thanks.

 

2021-09-01 12_20_09-Edit your flow _ Power Automate — Mozilla Firefox.png

1 REPLY 1
DAllen365
Resolver III
Resolver III

@chandlerwillis At a glance it looks correct though you aren't showing the run experience so it's hard to guess what it found when it ran.  I would guess that only one bucket ID matched the condition. 

 

I built a similar flow where I wanted to create planner tasks for people (one task per bucket in 4 buckets).  I first built an array of the people's names and the name of the bucket.  Foreach person, I did the List buckets, and foreach bucket, I have the same condition check if value name = the bucket name from my array for that person.  If it matched, I set a variable to the bucketID which I used in a subsequent create planner task in that bucketID for that person.  Here is my flow:

DAllen365_0-1630614833447.png

DAllen365_1-1630614860163.png

DAllen365_2-1630614898875.png

My LongProduct value was added as an expression like this: 

items('Foreach_PO')['LongProduct']
 

How many buckets do you have, and what results did the Compose show for all the buckets?  


----------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,352)