Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Fetch XML report - Quote and Quote Detail

Posted on by Microsoft Employee

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

  • Verified answer
    unizap Profile Picture
    unizap on at
    RE: Fetch XML report - Quote and Quote Detail

    Hi,

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Fetch XML report - Quote and Quote Detail

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

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Fetch XML report - Quote and Quote Detail

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans