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

Condition is not working in ms flows

Hi,

 

I am writing flow using "CDS" connector and "When record is selected" trigger and we are taking user input as well in that.

 

When we are using condition action to check if the user input value is equal to something it always returens false. I also tried contains it is not helping.

 

for testing to check what value is coming in user input text field I set that value to description field and value is coming properly in that.

1.png2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Impactful Individual
Impactful Individual

Re: Condition is not working in ms flows

@vaishalivyas1 try it without the quotes around the text in the condition. Flow automatically puts any string value in quotes for you.

You can take a closer look at the exact condition it uses by using the 'peek code' option

View solution in original post

5 REPLIES 5
Highlighted
Impactful Individual
Impactful Individual

Re: Condition is not working in ms flows

@vaishalivyas1 try it without the quotes around the text in the condition. Flow automatically puts any string value in quotes for you.

You can take a closer look at the exact condition it uses by using the 'peek code' option

View solution in original post

Highlighted
Helper III
Helper III

Re: Condition is not working in ms flows

Hi @SamPo 

 

After removing the quotes I am getting error. flow is failing. 

Error:

{
  "status": 400,
  "message": "An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type.\r\n   at System.Web.OData.Formatter.Deserialization.DeserializationHelpers.ApplyProperty(ODataProperty property, IEdmStructuredTypeReference resourceType, Object resource, ODataDeserializerProvider deserializerProvider, ODataDeserializerContext readContext)\r\n   at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n   at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n   at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n   at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)",
  "source": "equalityamsandbox.crm.dynamics.com",
  "errors": [],
  "debugInfo": "clientRequestId: baee60e2-1b5b-4939-a312-cd99d0f133e0"
}

3.png

and on that condition option to select peek code is off. 

Highlighted
Impactful Individual
Impactful Individual

Re: Condition is not working in ms flows

@vaishalivyas1 Looks like the condition worked but now one of the items inside the 'yes' branch are causing your flow to fail. Can you post a screenshot of your 'create prospect healthcare deal' action in edit mode and any related expressions.

Highlighted
Helper III
Helper III

Re: Condition is not working in ms flows

Yes. I resolved that, I tried by removing fields in that to identify what was causing issue. 

Thanks @SamPo . 

Highlighted
Impactful Individual
Impactful Individual

Re: Condition is not working in ms flows

@vaishalivyas1 You're welcome.

 

If you found it helpful then please mark my response as a solution to help others in the future.

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (3,831)