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

How to determine "sales shipment header" created from "Sales Invoice Header".

(0) ShareShare
ReportReport
Posted on by 50

I have a problem regarding partial shipments and creating invoice from order. If I create an invoice a record is also added to "sales shipment header". When I want to get the "sales shipment header" by Order No. I get both the records of the orders. In my case I just want to get the records created for that shipment at that time. Is there a way to determine which  "sales shipment header" is created for "Sales Invoice Header"? Is there a relation between the two? 

Thanks in advance.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    101,359 Super User 2026 Season 1 on at

    Hi, as far as I know, since there is a 1-to-many situation, they are not directly related.

    But in Item Ledger Entries and Value Entries, they are related by Item Ledger Entry No.

    pastedimage1686097358375v2.png

    pastedimage1686097374269v3.png

    pastedimage1686097384457v4.png

    Hope this can give you some hints.

    Thanks.

    ZHU

  • yaza Profile Picture
    50 on at

    Hi Zhu,

    Thank you for clarifying that for me.But for example: If I have a "Sales Invoice Header" and I want to get the "Sales Shipment Header" for it in AL language, How would I be able to do so? Could you please give me an example?

    What I did was: 

    SalesShipmentHeader.SetFilter("Order No.", SORNo);
    But as I mentioned before it get's all Sales shipment headers for this soru.
    Thanks in advance.
    Gr. Youssef

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,024 Super User 2026 Season 1

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,024 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,383 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans