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 Platform Community / Forums / Power Automate / Trouble Getting Planne...
Power Automate
Answered

Trouble Getting Planner Bucket Name and Plan Name

(0) ShareShare
ReportReport
Posted on by 12

Hi,

 

I am trying to get send a teams message when a plan is completed, which I am able to accomplish. The problem is that I want to include the plan name and bucket name of the completed plan, but I can't figure out how to do that. Below are pictures of my flow. I am currently trying to take the Plan ID output from "When a task is completed" and compare them to the plan IDs output from "List plans for a group", and when they are equal is passes to "Compose 2" where it is able to get the Title of the plan.

 

This seems because if I execute the flow I am able to see the correct value is in the compose; however, even with the identical setup the flow does not seem to work for the bucket.

 

Additionally, at the end in "Post a message as the flow bot to a user 2", I am not able to access the output from compose! If I place the dynamic content "Current Item" from either the "Get Bucket Name" or "Get Plan Title" I get this error message in the red bar (bottom of this post) when I attempt to save or test.

 

image.pngimage.png

 

Error message I get when I attempt to save/test my flow:

image.png

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hola!

    THe problem is, you need to declare variables.

    I would an 'Initialize variable' action block on top of your flow, just after the trigger, let's call it 'myBucketName', type string, value empty.

    THen I would an 'Initialize variable' action block also on top of your flow, just after the trigger, let's call it 'myPlanName', type string, value empty.

     

    Now, on the true branch of 'Condition 2' inside 'Get plan Title', I would add a 'Set variable' action block, name myPlanName, value the same one you assigned to 'Compose 2'

     

    Now, on the true branch of 'Condition' inside 'Get Bucket Name', I would add a 'Set variable' action block, name myBucketName, value the same one you assigned to 'Compose'

     

    Finally, you can assign both variables as part of your 'Post a message...' body

     

    Ánimo!

  • enriquezmrk Profile Picture
    12 on at

    This worked! I've been banging my head against the wall and you swooped in and fixed my problem in a few very clear sentences, thank you!

     

    You have also given me a desire to learn more about what I just did and why it worked.

     

    Thank you again!

  • efialttes Profile Picture
    14,756 on at

    @enriquezmrk 

    Thanx for your kindness.

    The point is, Compose inside an apply to each will take a different value on each iteration of the loop.Since you added inside a condition, it will take value null on each iteration the condition takes the false branch. And it will take a sting value on each iteration the condition takes the true branch.

     

    That's the reason whywhen you open 'Dynamic content menu' from an action block out of the loop, it does not show 'Compose'.

    Hope this helps

     

  • jozefko Profile Picture
    4 on at

    Hey @enriquezmrk , could you post flow steps? I have the same problem with getting a Plan name. Plan ID available only. Muchas gracias

     

  • enriquezmrk Profile Picture
    12 on at

    @jozefko : Here is the entire flow. May be better ways of doing some things but it works for me.
    enriquezmrk_0-1613657224749.png

     

    enriquezmrk_2-1613657293234.png

    enriquezmrk_3-1613657331023.png

    enriquezmrk_4-1613657349371.png

     

    enriquezmrk_6-1613657399801.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard