Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Add custom table in Salesinvoice report

(5) ShareShare
ReportReport
Posted on by 100
Hi,
 
I want to ada a custom table in salesinvoice report in the datasource section. eg. INGSalesDetail
It seems that we need to make it regular and createdtransactionid as yes.
I would like to know what all other settings are required at code level in salesinvoiceDP class to make sure that same record is shown to the user for the custom table INGSalesDetail.
eg.
the temp table is selected with transaction id in code
[SRSReportDataSetAttribute(tablestr(INGSalesDetail)) 
and COC of setconnection needs to be done.
 
Thanks,
VK
Categories:
  • Waed Ayyad Profile Picture
    7,879 Super User 2025 Season 1 on at
    Add custom table in Salesinvoice report

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Waed Ayyad Profile Picture
    7,879 Super User 2025 Season 1 on at
    Add custom table in Salesinvoice report

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Waed Ayyad Profile Picture
    7,879 Super User 2025 Season 1 on at
    Add custom table in Salesinvoice report

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Suggested answer
    Vishal Tiwari Profile Picture
    393 on at
    Add custom table in Salesinvoice report
    Hi, 
    To add a custom table to the Sales Invoice report, you may follow these steps (however I'm unaware of your exact requirement):
    1. Ensure to check the table settings - table type(regular), CreatedTransactionId, Primary Index & SaveDataPerCompany
    2. Extend SalesInvoiceDP Class - modify using coc to include custom table in the data provider. 
    3. Modify set connection using coc : (something like below)
    [ExtensionOf(classStr(SalesInvoiceDP))]
    final class SalesInvoiceDPExtension
    {
    public void setConnection(SrsReportRunContext _srsReportRunContext)
    {
    next setConnection(_srsReportRunContext);
    this.INGSalesDetailTmp.setConnection(this.parmReportContract().parmtransDataContract());
    }
    }
    4. Populate custom table data : Override processReport() to insert records in the table.
    and finally you can change the report design based on datasource fields etc. 

    Thank you!

    *****If this was helpful, please mark it as "Verified" so others with the same issue can benefit.*****
  • Suggested answer
    Waed Ayyad Profile Picture
    7,879 Super User 2025 Season 1 on at
    Add custom table in Salesinvoice report
    Hi,
     
    In order to modify a standard SSRS report, you need to create new report (Duplicate of the standard one), create COC class for the DP class, and modify the new design.
     
    Check the following link for more details: SSRS_Report_Modify
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

     
  • VaHiX Profile Picture
    5,646 Super User 2025 Season 1 on at
    Add custom table in Salesinvoice report

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,880 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans