Skip to main content

Notifications

Power Automate - General Discussion
Answered

Condition returns false SOMETIMES

(0) ShareShare
ReportReport
Posted on by 9

I have a really simple workflow to send an email when a sharepoint form is created AND approved. I've tested it out a million times now and it runs and sends emails successfully. Yet when actually used in action it refuses (sometimes) to send an email with the condition's expression coming back as False. how can i fix this to make it more stable? condition.pngfalse ex.png

  • TimothyP1 Profile Picture
    TimothyP1 2 on at
    Re: Condition returns false SOMETIMES

    I am having the same issue. I have a condition looking for a department number. I probably have 20+ items a week run through the process and 4 or 5 return false. Then when I go in and hit resubmit it runs properly and flags the department number as true.

  • fbetancur Profile Picture
    fbetancur 9 on at
    Re: Condition returns false SOMETIMES

    Thank you i didn't think of that! 

  • Verified answer
    Rhiassuring Profile Picture
    Rhiassuring 8,688 on at
    Re: Condition returns false SOMETIMES

    "save it (so now it is in a pending state) then approve it"

     

    Your flow is only triggering right now when an item is Created, not when it is Modified - so it will not trigger when you approve it. 

     

    If it will only ever be created and THEN updated to Approved (far more likely!) then you should change your trigger to 'When an item or a field is modified'. I think this will solve your issue.

  • fbetancur Profile Picture
    fbetancur 9 on at
    Re: Condition returns false SOMETIMES

    im not sure i can send the outputs as it has company info on it but in testing i would make a sharepoint form, save it (so now it is in a pending state) then approve it and an email will go out. part of that output says 

    {ModerationStatus}":"Pending"

     yet the sharepoint was approved

  • Rhiassuring Profile Picture
    Rhiassuring 8,688 on at
    Re: Condition returns false SOMETIMES

    Can you show the outputs from your "When an Item is Created" where you're receiving a "False"? 

     

    My thought is that an item is being saved, and hitting this, before the user gets to the Status to set it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard