Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Custom Report on Custom Entity

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I want to build a report on my custom entity, to show some filed in my report. 

I build a report in visual studio with this dataset:

SELECT Filterednew_inventorytransfer.new_inventorytransferId,
Filterednew_inventorytransfer.new_TransferTypename,
Filterednew_inventorytransfer.new_Product1,
Filterednew_inventorytransfer.new_Desc1,
FROM Filterednew_inventorytransfer
WHERE (Filterednew_inventorytransfer.new_inventorytransferId = @CRM_Filterednew_inventorytransfer)

it works in visual studio and ask to enter @CRM_Filterednew_inventorytransfer but in CRM it returns an error like this:

The report cannot be displayed. (rsProcessingAborted)

Could you please help me?

  • Suggested answer
    sdfasdf Profile Picture
    sdfasdf 840 on at
    RE: Custom Report on Custom Entity

    You have a custom parameter named "@CRM_Filterednew_inventorytransfer". In VS, you are most likely being prompted to enter a value to it, and you're probably assigning a GUID value to it, so when you run the report in VS it works. Now when you deploy this report to D365, this parameter will be automatically populated since it's a special parameter (its name begins with "@CRM_"), but the value D365 assigns to it is a FetchXML query, which renders an invalid value for your report.

    I would strong recommend you to refer to the following articles:

    Create a new report using SQL Server Data Tools

    docs.microsoft.com/.../create-a-new-report-using-sql-server-data-tools

    Improve report performance by using filters

    docs.microsoft.com/.../improve-report-performance-by-using-filters

    Hope it helps.

  • Milad Eshraghi Profile Picture
    Milad Eshraghi 15 on at
    RE: Custom Report on Custom Entity

    Thank you for your answer,

    I did it and took some snapshots from my datasets and parameter. I can't understand what is wrong in this report.

    62520.png

    3580.png

    1307.png

    8561.png

    4555.png

  • Suggested answer
    sdfasdf Profile Picture
    sdfasdf 840 on at
    RE: Custom Report on Custom Entity

    Any parameters whose name begin with "@CRM_" are "special" ones. Hence you may want to change your data set to something like this:

    SELECT Filterednew_inventorytransfer.new_inventorytransferId,

    Filterednew_inventorytransfer.new_TransferTypename,

    Filterednew_inventorytransfer.new_Product1,

    Filterednew_inventorytransfer.new_Desc1,

    FROM Filterednew_inventorytransfer

    Additionally, if you need pre-filtering to be enabled, make sure the @CRM_Filterednew_inventorytransfer parameter is assigned a default value similar to: select * from Filterednew_inventorytransfer

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans