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)

Fetch XML report - Quote and Quote Detail

(0) ShareShare
ReportReport
Posted on by

Hi, I am trying to create a report based on 2 entities. Some information as the total amount for the quote is in quote entity but the product details is in quote detail entity. I used the advanced find and started from quote detail and then brought some columns from quote. Nevertheless when I try to create my report I keep getting this error:  "The attribute "productname" cannot be found for entity "quotedetail". Specify a valid query, and try again"

this is my fetch :

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quotedetail">
<attribute name="productid" />
<attribute name="productdescription" />
<attribute name="priceperunit" />
<attribute name="quantity" />
<attribute name="extendedamount" />
<attribute name="quotedetailid" />
<attribute name="description" />
<attribute name="productname" />
<attribute name="quoteid" />
<attribute name="overriddencreatedon" />
<attribute name="salesrepid" />
<attribute name="baseamount" />
<attribute name="uomid" />
<order attribute="productid" descending="false" />
<link-entity name="quote" from="quoteid" to="quoteid" visible="false" link-type="outer" alias="a_5a6d1bb07139e811a833000d3a342e90">
<attribute name="totalamount" />
<attribute name="shipto_composite" />
<attribute name="revisionnumber" />
<attribute name="overriddencreatedon" />
<attribute name="quotenumber" />
<attribute name="ownerid" />
<attribute name="name" />
<attribute name="randgrp_engineeringsupportmanager" />
<attribute name="effectiveto" />
<attribute name="effectivefrom" />
<attribute name="createdon" />
</link-entity>
</entity>
</fetch>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    HI Atapia,

    Per the error, there is no column called productname in the Quote Product (quotedetail) entity.

    If you are looking for the Write-In Product, that is called "productdescription".

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi Aric, thanks but even removing product description is throwing me the same error :(

  • Verified answer
    unizap Profile Picture
    on at

    Hi,

    You need to remove "productname" from the list of attributes. "product description" is valid. No need to remove that.

Under review

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