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)

Multiple FetchXML datasets to run SSRS report on current record in Dynamics CRM (prefiltering)

(0) ShareShare
ReportReport
Posted on by 1,077

Hello,

I am developing a FetchXML based SSRS report for Quote in CRM to run from Quote entity. I know I can use single dataset but my requirement is very complex and mandate to use multiple datasets.

For example: I am trying to generate SSRS report using two fetchXML datasets show below. First dataset creates a Parameter and I am trying to use that parameter to filter QuoteProduct records. But I am getting error when I preview report shown below. Am I missing something here? Your help is highly appreciated.

QuoteDS:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quote" enableprefiltering="1" >
<attribute name="name" />
<attribute name="statecode" />
<attribute name="totalamount" />
<attribute name="quotenumber" />
<attribute name="ownerid" />
<attribute name="new_contactid" />
<attribute name="new_accountid" />
<attribute name="new_pipelinephase" />
<attribute name="new_estimatedclosedate" />
<attribute name="quoteid" />
<attribute name="new_ponumber" />
<order attribute="quotenumber" descending="false" />
</entity>
</fetch>

QuoteProductDS:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quotedetail">
<attribute name="productid" />
<attribute name="extendedamount" />
<attribute name="new_startdate" />
<attribute name="new_productid" />
<attribute name="new_enddate" />
<attribute name="new_frequencyofbilling" />
<attribute name="uomid" />
<attribute name="quantity" />
<attribute name="priceperunit" />
<attribute name="new_custombilling" />
<attribute name="quoteid" />
<order attribute="new_productid" descending="false" />
<order attribute="productid" descending="false" />
<filter type="and">
<condition attribute="quoteid" value="@quote" operator="eq"/>
</filter>
</entity>
</fetch>

SSRS Data Tools:

SSRS-DataTools.jpg

Error:

0410.ReportError.jpg

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    based on the picture, a wrong format of parameter is provide. Look at the Error picture and the parameter. It seems you are providing fetchxml value, instead of a guid.

  • Vijayakumar Kenchugundu Profile Picture
    1,077 on at

    No. I am providing parameter @quote as shown below image:

    QuoteProductDS-Parameter.jpg

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    what i means is this.

    5287.13.png

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