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

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

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 (82,173)