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 :
Small and medium business | Business Central, N...
Answered

Attributes on Standard Sales Invoice

(0) ShareShare
ReportReport
Posted on by

Dear community,

For my client I have the requirement to add the item attributes to their sales invoice.

On the "Standard Sales - Invoice" (Report 1306) the attributes are not, by default, available and to solve this I have written a report extension:

reportextension 50108 ExtendedSalesInvoice extends "Standard Sales - Invoice"
{
    dataset
    {
        addlast(Line)
        {
            dataitem("ItemAttributes"; "Item Attribute Value Mapping")
            {
                DataItemLink = "No." = field("No.");
                DataItemLinkReference = Line;

                // TABLE: Item Attribute Value (7501)
                dataitem("ItemAttributeValue"; "Item Attribute Value")
                {
                    DataItemLink = "ID" = field("Item Attribute Value ID");

                    column(AttributeName; "Attribute Name")
                    {
                    }
                    column(ValueValue; "Value")
                    {
                    }
                }
            }
        }
    }
}

After building and pushed the code to my sandbox (Run->run without debugging) I am not able to locate the new attribute fields in the word report. To verify the fields, I have exported the standard word report from Business Central, menu Report Layouts->Report 1306.

2022_2D00_05_2D00_05-20_5F00_05_5F00_59_2D002800_4_2900_-Forums-_2D00_-Microsoft-Dynamics-Community-_1420_-Mozilla-Firefox.png

Would anyone mind pointing me in the right direction why the fields are not visible in the report, and also, how do I add the attributes into the report, below the item line?

Thank you in advance.

  • Suggested answer
    tanya07 Profile Picture
    1,638 on at

    Hi,

    I followed the same, made a report extension, added the code, deployed it on the server, and located the report under-report layout selection for the 1306 report , made a copy of the report layout as below

    pastedimage1651780052881v1.png

    and opened in word as below -

    pastedimage1651780101709v2.png

    Please check, if the extension is deployed properly.

    Thanks,

    Tanya Kharbanda

    Don't forget to help the community by verifying the answer if your question has been answered. It will let others know that the topic has a verified answer.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Tanya,

    Thanks a lot for testing it out, very helpful.

    Based on your steps and screenshots I now see the fields. My mistake was that I did not copy my report, only in the copy the fields are available.

    Anders

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Thank you for confirming!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 711 Super User 2026 Season 2

#2
Teagen Boll Profile Picture

Teagen Boll 377 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 367 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans