cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Impactful Individual
Impactful Individual

@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
Impactful Individual
Impactful Individual

@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

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. 

Impactful Individual
Impactful Individual

@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.

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

Thanks @SamPo . 

Impactful Individual
Impactful Individual

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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!

Users online (9,564)