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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

"Solved" - Condition - Wrong result

(0) ShareShare
ReportReport
Posted on by 124

Hi,

 

I have a huge flow and at one point I want to check if the requester is certain person/s or not.

I want it to return "False" but I always get "True":

ZowieS_0-1594033186461.png

 

The condition looks like this:

ZowieS_2-1594033266209.png

The variables is a String and contains only one value, a e-mail/UPN (first.last@company.com).

I have tired the following 1st Value:

  • Forms
    • Responders e-mail
  • Sharepoint
    • UPN
    • Name email
  • Get user profile (v2)
    • Mail
    • UPN

Against the following controls(?):

  • It not equal to
  • dose not start with
  • dose not contain

And against the 2nd Value:

  • The Variable
  • Typing the email/UPN
  • Typing the: first.last

I also tried to separate it into separate groups with "Or" between them but nothing works.

 

Anyone have any idé?

 

Thank you!

 

Update 1

I recreated the hole flow so this isn't applicable anymore.

I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at
    Re: "Solved" - Condition - Wrong result

    @ZowieS 

     

    Pls share your condition which is giving you always true as output . it is not clear from your problem.

     

    Thanks

    Hardesh

  • ZowieS Profile Picture
    124 on at
    Re: "Solved" - Condition - Wrong result

    From my ineffective and over complicated flow I wanted a check if the requester was Person A or Person B.
    If it was I needed the result to be false so those two could continue in the No-column and everyone else in the Yes-column.

     

    I think that I couldn't get the result I wanted so i duplicated the flow and re-arrange it so I wouldn't need that control.

     

    The old flow is an approval flow where you could have other approves instead of Managers (the AD attribute).

    But my new/updated version dose use the Manager attribute.

     

  • mcin9781 Profile Picture
    on at
    Re: "Solved" - Condition - Wrong result

    For this issue you will need to look at the values of the variables in the condition.  It will return true if one of those statements is considered true.  For example in this case it is saying UPN (myemail@company.com) is not equal to ESM-ApproverEmail (hisemail@company.com).  If you can provide the variable values for the condition we can determine why the condition is returning True rather than False.

  • ZowieS Profile Picture
    124 on at
    Re: "Solved" - Condition - Wrong result

    I think that the problem was that I tried to have more then one positive/true check and they should go into different result (false) . Witch you can't (if my thoughts are working correctly 🙂).

    In this example the condition first checks the Department value to se if it matches or not. And also in the same condition I wanted two specific users always get the false value as result.

    The problem was that those to belonged to one of the Departments.

     

    Just a thought/questions:

    Dose the Condition match from top to bottom and the result is the first one it matches?

    In the example condition below the User A would match at number 2:

    User A belongs to Department B

    The Condition

    1, Department equals Department A

    2, Department equals Department B <-

    3, Department equals Department C

    4, User isn't User A

    5, User isn't User B

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard