Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Power Automate with Planner: IF Statements

(0) ShareShare
ReportReport
Posted on by 257

I have a Flow that's linked to a Power App, that's linked to a SPO list.  When a user submits a form to this SPO list, it creates a task in planner.  The planner task creation works pretty well, but I'm trying to avoid creating multiple levels of conditional  controls that would allow me to select the planner bucket (five of them) based on the user's submission.

 

So what i did was to grab the IDs of each bucket from MS Graph and added them to variables

kilaj1_0-1626788994017.png

then I tried creating an expression in the Bucket ID field of the "Planner Create Task" control, this si a small test I attempted with two possible options

 

if(triggerOutputs()?['body/FeedbackType/Value']="Communications",variables('Communications Bucket'),if(triggerOutputs()?['body/FeedbackChannel/Value']="Programs",variables('Programs Bucket')))

 

 

when i try to submit this is just says expression is invalid.

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Power Automate with Planner: IF Statements

    Hello @kilaj1 ,

    you must use equals(A, B) expression instead of = character.

    if(equals(triggerOutputs()?['body/FeedbackType/Value'], 'Communications'),variables('Communications Bucket'),if(equals(triggerOutputs()?['body/FeedbackChannel/Value'], 'Programs'), variables('Programs Bucket'), '...'))

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492