cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Condition not working

Hi,

 

I am in the middle of creating a flow and have run into a problem with one of my conditions. The background of the flow is:

 

I want to be able to check a new entry of a specific sharepoint list, see if a column is set to Yes by the user. If it is set to Yes, then get the items from the "Approvers" list in the site. The users will be asked to enter 3 specific things before hand and depending on their answers an email will be sent to one of the email addresses listed in the "Approvers" List.

Below is the start of my Flow and how I imagine it to go:

FlowG&H.pngThis FlowG&H2.png

Under this condition if it meets it, in the Yes section I have the send email to "Approver" unsure if this will send to the specific user based on the condition. But at the moment I am getting the following issue where its saying the inputs don't match even though they do:

G&H flow error.png

I have checked the column types and inputs seem to be the same, unsure if I am doing this wrong.

 

Any advice on the above would be greatly appreciated.

 

Cheers,

Devin

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User III
Super User III

Hi again

Did you see the three dots on the Dynamic Content Element on the right? Hover your mouse over it.

You are comparing current iteration 'Location' against trigger 'Location...' ('Location value'?).

THis is a wrong approach, you need to compare same concepts Either 'Location' vs 'Location', or most likely 'Location Value' vs 'Location Value'

Flow_LocationVSLocationValue.png

Hope this helps

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

 

Hi @Devinm501 ,

 

You can try to solve your problem with the following three aspects:

 

First, when selecting Dynamic content, please check its source to ensure that it is the Dynamic content output by the correct action. Because these are Dynamic content with the same name, you may have filled the wrong Dynamic content in the Condition.

 

Second, please pay attention to the field type. If the field type is Yes/No, then you need to use true/false to compare with the field value. If the field type is choice, then the Dynamic content you should select should be ColumnName Value.

 

Third, you can add a step before Condition and add Compose to output the value of Dynamic content you need to compare. This is convenient for you to check the value of Dynamic content output in Flow run history.

 

I hope that helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Super User III
Super User III

Hi!

Is your 'Condition' inside 'Apply to each' always evaluated as false?

If so, I believe the problem in in your first Condition rule, since you are comparing current iteration 'Location' against trigger 'Location...' ('Location value'?) which will be always false.

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi,

 

Can you explain this a bit further sorry. I am confused as to how it will be false if it is comparing the current Location and SBU from the approvers list, with the Location and SBU from the new entry. Should this condition be outside of the apply to each or somewhere else in the flow?

 

Thank you for the response.

 

Devin

Super User III
Super User III

Hi again

Did you see the three dots on the Dynamic Content Element on the right? Hover your mouse over it.

You are comparing current iteration 'Location' against trigger 'Location...' ('Location value'?).

THis is a wrong approach, you need to compare same concepts Either 'Location' vs 'Location', or most likely 'Location Value' vs 'Location Value'

Flow_LocationVSLocationValue.png

Hope this helps

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

 

Hi @Devinm501 ,

 

You can try to solve your problem with the following three aspects:

 

First, when selecting Dynamic content, please check its source to ensure that it is the Dynamic content output by the correct action. Because these are Dynamic content with the same name, you may have filled the wrong Dynamic content in the Condition.

 

Second, please pay attention to the field type. If the field type is Yes/No, then you need to use true/false to compare with the field value. If the field type is choice, then the Dynamic content you should select should be ColumnName Value.

 

Third, you can add a step before Condition and add Compose to output the value of Dynamic content you need to compare. This is convenient for you to check the value of Dynamic content output in Flow run history.

 

I hope that helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Perfect! thank you for your help.

 

Also just a quick one, the other condition is if BU matches BU, the column that the user fills out is a choice column, however the BU column on the other list was just a single line of text column. Will this cause any problems or am I just easier changing the other Column into a choice aswell?

 

thanks again!

 

Devin

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (9,510)