cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jln2471
Level: Powered On

Condition value not returning expected result.

Hi everyone,  I'm having trouble with a condition that uses a Salesforce field.  All I want is for the flow to continue when the condition is true.  I set it up as follows:

 

@equals(triggerBody()?['Product__c'], '3D SCANNER™ (BNC)')

 

Even if the product field in Salesforce contains "scanner", I still get a false.  Any clue why this is happening?

 

Thanks!

1 REPLY 1
Community Support Team
Community Support Team

Re: Condition value not returning expected result.

Hi @jln2471,

 

Could you please share a screenshot of your flow's configuration?

Do you want your flow to continue when the Product field contains "SCANNER" or when Product field is equal to 3D SCANNER™ (BNC)?

 

If you want your flow to continue when the Product field contains "SCANNER", I think there is something wrong with the formula that you provided. The formula that you provided means that your flow would continue only when the Product field value is equal to 3D SCANNER™ (BNC).

 

I have made a test on my side and please take a try with the following workaround:6.JPG

Within Condition box, left input box set to Product Name dynamic content of the trigger, right input box set to SCANNER. Middle drop down, choose is equal to.

 

Or you could consider take a try to click "Edit in advanced mode", type the following formula:

 

@contains(triggerBody()?['Name'], 'SCANNER')

 

On your side, you should type the following formula within your Condition box (advanced mode😞

@contains(triggerBody()?['Product__c'], 'SCANNER')

Note: It is case-sensitive within expressions of Microsoft Flow.

 

The flow works successfully as below:7.JPG

 

Best regards,

Kris

 

 

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

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,713)