Retrieve Records filtering on an Entity Reference field using OData for CRM 2013 RRS feed

  • Question

  • Does anyone know how to accomplish this in 2013?

    Example would be I want to retrieve a record and filter it based on a related records name.

    I know this was possible in 2011, but is it possible in 2013? 

    Thanks in advance,


    Friday, December 6, 2013 11:45 PM

All replies

  • Same Odata JS code will work in MS CRM 2013 to get record and filter it based on a related records name.

    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
    Vikram Singh. !!!  My Blog

    Saturday, December 7, 2013 1:26 AM
  • Hi,

    I would say to use XRMToolBox for CRM 2013 for making your odata queries quickly.

    The link is Toolbox for Dynamics CRM 2011/2013

    Once you have your odata query ready, you can follow this post for utilizing the odata query in your JavaScript file.

    The link is oData Call in JavaScript

    You will be able to retrieve the data similarly as you were retrieving in CRM 2011.

    Moreover if you can also have a look on this link which is related to fetchXml exception in CRM 2013 which is an advantage over fetchXml in CRM 2011. (might be useful somewhere in other scenarios.)

    I hope this helps to resolve your issue.

    Thanks & Regards,

    Anubhav Bajpai

    • Proposed as answer by D Suresh Kumar Tuesday, December 10, 2013 3:49 AM
    Monday, December 9, 2013 9:53 AM