web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Cannot call the correct Sales invoice SSRS report format with print management

(1) ShareShare
ReportReport
Posted on by 6,611
Hello:
 
Hopefully I can explain this clearly.
 
We have a modified Sales invoice report currently in the system (e.g. SalesInvoice.ABC, ABC being the model). The code below was written to allow configuration in Print management. It's the only customized version and it works fine. 
 
[SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
    public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
    {
        switch (_docType)
        {
            case PrintMgmtDocumentType::SalesOrderInvoice:
                _result.result(ssrsReportStr(abc_SalesInvoice, Report));
                break;
        }
    }
 
Now, I'm creating another version of the Sales invoice report (e.g., SalesInvoice.XYZ) using the base MS report. This will be used for a specific legal entity. I wrote the same code as above except specifying my version of the report. 
 
Under AR print management setup, I can see my report (xyz_SalesInvoice) for the Customer invoice document as well as the other customized version (abc_SalesInvoice). The problem is, even with xyz_SalesInvoice configured in Print management, when the report runs, it still calls the abc_SalesInvoice version. I would assume Print management would return the version configured but obviously that's not the case. 
 
Thank you! 
  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at
  • bankk Profile Picture
    6,611 on at
    Hello Mohit,
    I will certainly give this a solution a try. I will mark as solution if it works. Thank you! 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans