Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get a list of report designs by code

(0) ShareShare
ReportReport
Posted on by 212

Hello,

Is there a way to get a list of SSRS report designs in code (for a specific report)?

*This post is locked for comments

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Get a list of report designs by code

    Here is a sample job to get all design names for SalesInvoice report, just change highlighted line to include report you need or multiple

    static void getDesignNameJob(Args _args)
    {
        List srsReportList;
        ListEnumerator srsReportListEnumerator;
        SRSReport srsReport;
        
        List srsReportDesignsList;
        ListEnumerator srsReportDesignsListEnumerator;
        
        SRSReportDesign srsReportDesign;
        
        Set reportsSet = new Set(Types::String);
        srsFrameworkService service = new srsFrameworkService();
        
        reportsSet.add('SalesInvoice');
        
        srsReportList = service.getReportDetails(reportsSet);
        
        if (srsReportList)
        {
            srsReportListEnumerator = srsReportList.getEnumerator();
            
            while (srsReportListEnumerator.moveNext())
            {
                srsReport = srsReportListEnumerator.current();
                
                if (srsReport)
                {
                    srsReportDesignsList = srsReport.designs();
                    
                    if (srsReportDesignsList)
                    {
                        srsReportDesignsListEnumerator = srsReportDesignsList.getEnumerator();
                        
                        while (srsReportDesignsListEnumerator.moveNext())
                        {
                            srsReportDesign = srsReportDesignsListEnumerator.current(); 
                            
                            if (srsReportDesign)
                            {
                                info(srsReportDesign.designName());
                            }
                        }
                    }
                }
            }
        }
    }

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans