Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Adding a table to pre-existing report

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm trying to add <any> table to <any> standard report so I can understand the extension process a little better.

The example I am using is adding the table InventItem to 1306 (Sales Invoice) and looking to add a couple of random fields:

pastedimage1662465937024v1.png

Is this possible using extensions? I'm trying to adapt AL code I've written in the tutorials and getting nowhere fast. Is there a T-template I'm not using? I realise my syntax must be apalling, but I can't find any guide on how to do this.

  • Suggested answer
    Nitin Verma Profile Picture
    21,426 Moderator on at
    RE: Adding a table to pre-existing report

    In that case please follow the below code what I tried to add Integer table after Sales Invoice Line table. You can also add in the same way and change accordingly.

    reportextension 58300 MyReport extends "Standard Sales - Invoice" //1306

    {

       dataset

       {

           addafter(line) //Sales Invoice Line Data Item

           {

               dataitem(Integer; Integer) // It will add new Integer Dataitem after Sales Invoice Line Data Item.

               {

                   column(Number; Number)

                   { }

               }

           }

       }

    }

  • Community Member Profile Picture
    on at
    RE: Adding a table to pre-existing report

    Hi Nitin,

    Thanks for that - I think that's one of the (many) pages I've read before posting. To clarify, I'm not trying to add an extension of an existing table to a report that's already in the report - I'm trying to add into a report a table that isn't included at all in the original. My example is trying to add InventItem into the sales invoice. I would presume I can link the line item on the invoice to the itemid on inventitem and then access any field on inventitem - just like I can if I'm creating a new report.

    Apologies if I'm mis-understanding the link you've sent!

  • Suggested answer
    Nitin Verma Profile Picture
    21,426 Moderator on at
    RE: Adding a table to pre-existing report

    Hi,

    Please follow the link for the report extension,

    docs.microsoft.com/.../devenv-report-ext-object

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,112 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,893 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans