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

I have a problem: How can I retrieve the "Lot No" value in the Posted Sales Invoice screen?

(6) ShareShare
ReportReport
Posted on by 322
Hello.
I have a problem: How can I retrieve the "Lot No" value in the Posted Sales Invoice screen?
"Lot No" is present in the "Posted Item Tracking Lines" screen. In the "Item Ledger Entry" table, I can't find a valid relationship between the "Item Ledger Entry" table and the "Sales Invoice Line" table in which I can retrieve the "Lot No" value.
 
 
 
 
 
 
Document No. is different on both screens   "Posted Sales Invoice"  and "Posted Item Tracking Lines"  ؟؟؟؟؟؟؟؟؟؟؟؟؟؟
 
I have the same question (0)
  • Verified answer
    Holly Huffman Profile Picture
    6,554 Super User 2026 Season 1 on at
    Good morning, afternoon, or evening depending on your location :)
    Hope you are well today!
     
    You're trying to retrieve the Lot No. on the Posted Sales Invoice screen in Business Central, but you're only seeing it in the Posted Item Tracking Lines screen. You're also noticing that the Document No. differs between the Sales Invoice Line and the Item Ledger Entry, making it hard to link them directly.
     
    How to Retrieve Lot No. on Posted Sales Invoice:
    To get the Lot No. associated with a Posted Sales Invoice, you need to follow this chain of relationships:
    1. Sales Invoice Line â†’ Item Ledger Entry No. (via the Value Entry table)
    2. Item Ledger Entry â†’ Entry No. (used in Item Tracking Entry)
    3. Item Tracking Entry â†’ Lot No.
     
    Step-by-Step Navigation:
    Start from the Posted Sales Invoice Line:
    - Get the Document No. and Line No.
    Go to the Value Entry table:
    - Filter by Document No. and Source Type = Sales Invoice Line
    - Get the Item Ledger Entry No.
    Go to the Item Tracking Entry table:
    - Filter by Item Ledger Entry No.
    - Retrieve the Lot No. from here
     
    Alternative: Create a Custom Report or Page Extension
    If this is a frequent requirement, consider creating a custom report or page extension that:
    Joins Sales Invoice Line â†’ Value Entry â†’ Item Ledger Entry â†’ Item Tracking Entry
    Displays the Lot No. directly on the Posted Sales Invoice screen
     
    Note: I collaborated with Copilot to help craft this response for clarity and completeness.
    Hope this helps some!
  • Verified answer
    Mansi Soni Profile Picture
    9,156 Super User 2026 Season 1 on at
    Hello,

    In Business Central, the Lot No. from the Posted Item Tracking Lines is not stored directly in the Sales Invoice Line. This is because the invoice is linked to inventory movements indirectly through the shipment. To retrieve the Lot No. for a posted sales invoice, you need to follow this chain: start from the Sales Invoice Line, identify the Sales Shipment No., and use that to find the corresponding Item Ledger Entry. Then, link the Item Ledger Entry to the Item Tracking Entry table (based on the Item Ledger Entry No.). From the Item Tracking Entry, you can retrieve the associated Lot No. value. So while the document numbers differ (as the invoice and ledger represent different stages), the lot number can still be traced through these underlying relationships.

    Hope this answer will help you!

    Regards,
    Mansi Soni

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans