locked
CRM 2011 Rest kit to retrieve only related Opportunity products in an Opportunity RRS feed

  • Question

  • Hi Everyone,

    Issue:

    In Opportunity, I need to retrieve the related Opportunity products and check a field in them.

    Based on that field value in Opp products, Opportunity form changes.

    I am able to retrieve all the Opportunity products through CRM Restkit and then match with ID's to get the related opp products.

    Now the problem is CRM Restkit retrieves only first 50 records not after that.

    Rectification:

    The problem is I am retrieving ALL opportunity products.

    Is there a way to retrieve ONLY related opportunity products?

    So that the count will be less.

    I am looking to find a solution for this. Kindly help me

    Regards,

    Paul



    Friday, July 12, 2013 6:24 AM

Answers

  • Hi,

    If I understand your question right, you are trying to query the products of an opportunity. If so, you first have to get the ID of the opportunity through Xrm.Page. Then, when you are building the oData query, put a condition to only query the opportunity products which their opportunity ID is equal to the captured ID. This is the standard procedure you could do. If you really have more than 50 products on an opportunity you could increase the limit by the links which Joe mentioned.



    My Weblog | My Website

    Friday, July 12, 2013 8:29 AM
    Moderator

All replies