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)

Run the SSRS report based on specific Entity Record

(0) ShareShare
ReportReport
Posted on by 317

Dear All,

i have implemented the SSRS report that is based on SQL query, i have deployed the same in the CRM instance(for the  custom entity report has implemented).

now when i open the record for the custom Entity and when i click on Run report button,based on the  particular opened Records value has to display in report level.

please can anyone guide me for the same with out using java script how we can do in Query level.

Regards,

Krishna.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    Hi Krishna,

    You need to use prefilter for this. No need any javascript.

    More details on pre-filter

    technet.microsoft.com/.../dn531099.aspx

    community.dynamics.com/.../195449

  • Krishna potdar Profile Picture
    317 on at

    Hi Mahadeo,

    I have tried for that but in my SQL query i am using unoin so its not working for Both the queries.

    Thanks for the Suggestion.

    Regards,

    Krishna.

  • Iswarya Profile Picture
    1,347 on at

    hi,

    you want to run your report from specific entity means, create custom button in your specific entity form and call your report from button action.

  • Krishna potdar Profile Picture
    317 on at

    Hi Iswarya,

    Thanks for the suggestion!

    In requirement of that report Button is not allowed in the form level.

    I have created the report using fetch XML and now it is working fine .

    Regards,

    Krishna.

  • Vijayakumar Kenchugundu Profile Picture
    1,077 on at

    Krishna,

    I do have a similar requirement to run FetchXML SSRS report on Quote entity based on the Quote Product selected. I have different templates of reports for each product. So, I have to call dynamically the report template specific to that product selected in Quote product. How do I make this happen? I appreciate your quick response. Thanks in advance.

    Vijay

  • Suggested answer
    Krishna potdar Profile Picture
    317 on at

    HI Vijay,

    Good Morning!

    1) For the quote entity you need to mention(in fetch XML) enableprefiltering="1"

    2) For the Quote product apply the condition like this in fetch XML (Quote equals @quote parameter)take one parameter in the report level for that mention name like "quote parameter" for that take we have to get values dynamically from query , right click on parameter which we have created ("quote parameter") and choose default value -->get values from query there we have to choose the data set name and choose as Quote Id for value field.

    3)to run the report based on product and quote product as well, for that we need to choose in report area two entities (product and Quote product)

    please try this once and let me know if you have queries

    please mark as verified if its solves the above query,thanks in advance!

    Regards,

    Krishna.

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi Krishna,

    Use this article for CURD operations using JS in Dynamics CRM.

    missdynamicscrm.blogspot.com/.../tips-and-trick-odata-crm-2011-2013.html

  • Krishna potdar Profile Picture
    317 on at

    Hi Sandeep,

    Thanks for the suggestion!

    i have implemented the report using the Fetch XML and its working fine.

    Regards,

    Krishna.

  • Vijayakumar Kenchugundu Profile Picture
    1,077 on at

    Krishna, Thanks for your prompt response. My need is to generate SSRS report (something like run report on current record) on Quote Entity. I have different formats of Quote ssrs reports. Based on the product selected, the corresponding formatted ssrs report needs to be called.

  • Krishna potdar Profile Picture
    317 on at

    Hi Vijay,

    May i know the Products are option set values or it's a kind of record which consist of all records?

    Regards,

    krishna

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