web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Opportunity to quotes to quote products

(0) ShareShare
ReportReport
Posted on by

Afternoon all

I'm trying to build a report that shows An Opportunity and then lists all the quotes and the products in the quotes. Normally i would build something in CRM and then download the report into VS2012 to play with. But i can't seem to make the last little jump from quotes to the products.

I can list all quotes in the opportunity i'm in but how do i get the products as well

Many Thanks

Dan  

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at

    Hi Dandare,

    Its because in CRM Advanced Find. The Opportunity can only reach entities one level deep.

    So Opportunity > Quote. But with some messing around with the FetchXML you can reach the Quote products as well:0435.Screenshot_5F00_1.png 

    What I do is just link all the entities together and add filters for the values you want to see, then just change them from a filter to attributes in the FetchXML:

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
      <entity name="opportunity" >
        <attribute name="name" />
        <attribute name="estimatedvalue" />
        <attribute name="opportunityid" />
        <attribute name="psd_revenuetype" />
        <attribute name="estimatedclosedate" />
        <attribute name="description" />
        <attribute name="parentaccountid" />
        <attribute name="parentcontactid" />
        <attribute name="actualvalue" />
        <attribute name="actualclosedate" />
        <attribute name="psd_originatingopportunityid" />
        <attribute name="ownerid" />
        <order attribute="name" descending="true" />
        <filter type="and" >
          <condition attribute="opportunityid" operator="eq" uiname="Test" uitype="opportunity" value="{1E9ADB04-7A68-E711-8100-5065F38B4671}" />
        </filter>
        <link-entity name="quote" from="opportunityid" to="opportunityid" alias="aa" >
          <attribute name="quoteid" />
          <link-entity name="quotedetail" from="quoteid" to="quoteid" alias="ab" >
            <attribute name="productid" />
            <attribute name="baseamount" />
            <attribute name="quantity" />
          </link-entity>
        </link-entity>
      </entity>
    </fetch>

    Alternatively you can just use XRMToolBox and download fetchXMLBuilder:
    http://fxb.xrmtoolbox.com/


Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans