Forum Discussion

ericleigh007's avatar
ericleigh007
Advocate II
9 years ago

Full documentation and example for OData.Feed please

The OData.Feed documentation is lacking.

 

There is no full description of the parameters.   No indication is given, for instance, on how to form a query string?  Is that just a normal OData query string, like "$filter=field eq value"?   Or something else?   

 

I also note that there could be, because i saw it in one sample on a forum, a "rowlimit" element in the options parameter (whose parameter description is lacking).   

 

Endlessly trying combinations of what I think the exact syntax "should" or "could" be is very annoying and time-consuming.

 

Can we get a fully documented version, please, and include a sample or two, since the function is so complex?

 

-thanks in advance
-e

4 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi ericleigh007,

     

    You can go through this article to know available OData query string options.

     

    On Power BI side, to get the data use Odata feed data source, for example Dynamics CRM, you can take a look at this article: Prefilter data for Power BI with OData URLs. The entered URL should follow the syntax of above OData URI.

     

    Maybe you are also interested in Filter a report with a URL query string parameter.

     

    Best Regards,
    Qiuyun Yu

     

     

    • ericleigh007's avatar
      ericleigh007
      Advocate II

      I asked for an update to the doucmentation so that I and others would know how to use the OData.Feed command.  

       

      As such, only the "prefilter data for powerbi" may be responsive.  I'll try that, but I have already done specific tests with OData.Feed, and comparing that with the same query in the browser, I find that OData.Feed works differently.

       

      But I will log a speicfic problem report on that.   

       

      The original request to FIX the documentation so we know how to use the function, NOT tell us how OData is supposed to work.

       

      -thanks

      -e

      • mllopis's avatar
        mllopis
        Community Admin

        You can find documentation about OData.Feed (and all other M language functions) in MSDN. Here's the page for OData.Feed: https://msdn.microsoft.com/en-US/library/mt260868.aspx 

         

        Note that you can also find in-product documentation by just typing =OData.Feed (or any other function) in the Query Editor formula bar and hitting enter.

         

        Thanks,
        M.