locked
How to get Opportunityproduct by QuoteDetail in MS Dynamics CRM? RRS feed

  • Question

  • I am a newbie in the MS Dynamics CRM plugin-development and I should develop a plugin that change the businnes logic of CRM.

    I have the QuoteDetail-entity and I want to find the OppoptunityProduct from which this QuoteDetail was generated.

    It is possible? I have not found any possibility to do this.

    Friday, January 31, 2014 12:17 PM

All replies

  • Hi,

    If you have a relation between the two you can search for the OpportunityProduct that has the QuoteDetail record related to it.

    Regards


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Friday, January 31, 2014 1:51 PM
  • If you have a relation between the two you can search for the OpportunityProduct that has the QuoteDetail record related to it.


    Hi, thanks for answer! But in these entities exists no relations...
    Friday, January 31, 2014 2:36 PM
  • The boring answer is that if there's no connection between them, you won't be able to find a connection. Create a relation between the two entities and make sure that the connection is set when you create the subordinate record. In that way you can search for the parent record.

    Regards


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Friday, January 31, 2014 2:38 PM