Forum Discussion

Mark_Holtham's avatar
Mark_Holtham
Regular Visitor
8 years ago
Solved

Dynamics 365 Related Table Filtering

Hi,   I've started to move existing report queries from "Tenancy/XRMServices/2011/Organization.svc" to  OData 9.0 and finding that existing related table filtering is not working. I suspect it is a...
  • Mark_Holtham's avatar
    Mark_Holtham
    8 years ago

    It seems that I have hit a bit of a limitation on the current implementation of REST API 9.  The other forum didnt quite help but kindly presented enough information for me to find an alternative.

     

    Instead of using a $filtering, I have referenced an existing system view in Dynamics 365. I know the report is at risk of any changes to the system view, but the approach offloads the query to Dynamics, which then is pulled in to Power BI.

     

    let
    Source = OData.Feed("https://<tenant>.api.crm4.dynamics.com/api/data/v9.0/invoices?savedQuery=00000000-0000-0000-0000-000000000000", null, [Implementation="2.0"])

    in

    Source

     

    The savedqueryid was found in the savedqueries table.

     

    I hope this can be of use to someone.