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...
Suggested Answer

Word XML fieldcodes for Commodty Code, Item inventory quantity and Shelf No.

(0) ShareShare
ReportReport
Posted on by 66

First of all, I know this isn't officially supported, and there isn't a report extension process (yet).

But I would like to add Commodity Code, Item Shelf No and the quantity of stock held of an item on a report (e.g. Order Confirmaton or Picking List) and I cannot find report examples with these field codes to manually edit in via VS Code...

Does anyone know how I might find the relevant fieldcodes for these - as an example:

 
     UnitPrice_SalesLine
 

Thanks, Tristan

  • Suggested answer
    JAngle Profile Picture
    161 on at

    You need to set a variable for the item table and then use the GET function if the line is a type of item then you can display the data. You’ll need to get a copy of the report and add your code. Do it in the OnAfterGetRecord for the sales line data item for the order confirmation. For the pick add it to the line level section too. Once you’ve added your code then place the column references in:

    column(ItemCommodityCode; Item.”Commodity Code”)

                   {

                   }

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

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans