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

Odata Filter query for dynamics crm

I am trying to return a list of Dynamics CRM records from an entity using a related Lead record.

Can anybody advise the correct syntax as I keep getting the following error?

"message": "A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.CRM.lead' and 'Edm.Guid' for operator kind 'Equal'."
 
I have tried various permutations including, converting the lead id to a string. 
 
The lead id is being returned as an item in a collection from a previous list records step.
 
 
Flow.png
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: bel,Re: Odata Filter query for dynamics crm

Thanks for your suggestion.

I meant to post the solution I found

cdi_leadid/leadid eq lead

View solution in original post

11 REPLIES 11
Highlighted
Super User II
Super User II

Re: Odata Filter query for dynamics crm

Have you tried removing the single quotes? If the Lead attribute is actually presenting the GUID, then single quotes are not required. 

 

Highlighted
Community Support
Community Support

Re: Odata Filter query for dynamics crm

Hi @MartinHutchcpa ,

 

I have made a similar test using Filter query in List record action in entity Opportunities.

Please check the following image for a reference.

1.PNG

 

Best regards,

Mabel

 

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

Re: Odata Filter query for dynamics crm

Unfortunately when I remove the quotes I still get the same error.

This is the filter query from the failed run. 

cdi_leadid eq fce4d0b8-91b2-e811-a956-000d3ab1ab19

 

 

Highlighted
Helper III
Helper III

Re: Odata Filter query for dynamics crm

Thanks for  your reply Mabel, however can you help me by telling me what is different in your example please, as I have now removed the single quotes and I still get the same error.

Highlighted
Super User II
Super User II

Re: Odata Filter query for dynamics crm


@MartinHutchcpa wrote:

Unfortunately when I remove the quotes I still get the same error.

This is the filter query from the failed run. 

cdi_leadid eq fce4d0b8-91b2-e811-a956-000d3ab1ab19


From the screenshot of the one step you provided us in your initial post, it should work. You must have something higher up in your flow that may be causing the issue. Can you provided a screenshot of your entire flow for review?

Can you also please provide a full screenshot of the full error message you are receiving?

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. THANKS!

Highlighted
Helper III
Helper III

Re: Odata Filter query for dynamics crm

It is a fairly simple flow.

{
"status": 400,
"message": "A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.CRM.lead' and 'Edm.Guid' for operator kind 'Equal'.",
"source": "xxx.crm4.dynamics.com",
"errors": [],
"debugInfo": "clientRequestId: 55668ac8-bf5f-4668-9743-38d3f5b9d2cd"
}
 
flow.png
Highlighted
Helper III
Helper III

Re: Odata Filter query for dynamics crm

Having posted a support request to Microsoft for this, I have had no response to that for 4 days, although their SLA states 8 hours.

Does anyone here know what could be wrong or is it in the "too hard pile"?

 

Highlighted
Community Support
Community Support

Re: Odata Filter query for dynamics crm

Hi @MartinHutchcpa ,

 

Is entity Visits a custom entity?

I don’t have a Visits entity on my side.

 

Best regards,

Mabel

 

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

bel,Re: Odata Filter query for dynamics crm

Hi Mabel,

It is an add in provided by ClickDimensions.

 

Martin

Highlighted
New Member

Re: bel,Re: Odata Filter query for dynamics crm

Have you tried using _cdi_leadid_value  instead of cdi_leadid to refer to the lookup field in the Filter Query?

 

Example:  _cdi_leadid_value eq LeadDynamicContnetGoesHere

Highlighted
Helper III
Helper III

Re: bel,Re: Odata Filter query for dynamics crm

Thanks for your suggestion.

I meant to post the solution I found

cdi_leadid/leadid eq lead

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,652)