cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ojward
Microsoft
Microsoft

Dynamics CRM Connector - ODATA Filters

Hey Team,

 

I have a few questions around the Dynamics CRM Connector for flow. - Do you have any documentation or info relating to how far the results for the ODATA filters have been implemented?

 

  • I've successfully used a filter condition but interested to know if I can use the $expand property to return related entities.
    e.g. Query 'Accounts' and use
    $expand to retrieve the related 'Address' records? (1:N Relationship) - Will Flow be able to handle these results?

(e.g. Will it recognise this as a collection?

 

Cheers!

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi Ojward,

 

It seems that ODATA filter query function has not been implemented yet, as flow is being improved and developed, you could submit a flow idea at “Flow Ideas”.

 

The link of "Flow Ideas" is:
https://powerusers.microsoft.com/t5/Flow-Ideas/Add-Branching-Logic-to-Flow/idi-p/1600

 

Best regards,
Mabel Mao

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.

View solution in original post

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

Hi Ojward,

 

It seems that ODATA filter query function has not been implemented yet, as flow is being improved and developed, you could submit a flow idea at “Flow Ideas”.

 

The link of "Flow Ideas" is:
https://powerusers.microsoft.com/t5/Flow-Ideas/Add-Branching-Logic-to-Flow/idi-p/1600

 

Best regards,
Mabel Mao

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.

View solution in original post

Anonymous
Not applicable

Hi, could you provide an example of a filter? I'm having some real issues and there is nothing online.

Anonymous
Not applicable

Same issue for me here. It is really frustrating having no samples about the odata filtering. 

I tried to get a filter running for a small xrm sample with a new entity registrations.

Nevertheless I get this error:

 

A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.CRM.new_event' and 'Edm.Guid' for operator kind 'Equal'.\",\r\n \"innererror\": {\r\n \"message\": \"A binary operator with incompatible types was detected.

 

This leads me to the question, how can I filter with guids? Is there an option for casting?

2016-11-26 18_42_09-Eigene Flows verwalten _ Microsoft Flow.png

Anonymous
Not applicable

Hi Tofi,

 

I actually figured it out in my case. I had to use single quotes i.e. 

 

Address1_City eq 'Redmond'

 

I don't know if this will help you in your case.

Anonymous
Not applicable

Hi trevor,

 

Thanks for your response :).

In case of filtering for a guid it does not help :(. Nevertheless you are right by filtering for string values it is correct to use single quotes.

  var query = "/api/data/v8.2/customeraddresses?$select=line1,line2,line3,stateorprovince,postalcode,city,country,county&$filter=parentid_account/accountid eq " + AccountId + " and addressnumber eq 1";

 

worked for me

_new_fieldnameid_value eq cc0f7474-cac6-e611-80ee-5065f38b03d1

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,776)