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 transfert data from a sale document to a shipement document

(0) ShareShare
ReportReport
Posted on by 95

Hi

i m make AL code and i want to know how we can transfert the data of the shipper to the shippement document.

When i choose on my sales doc , DHL for example; and after that i create a shippement, this information is not transfert

should i use the EventSubscriber to do this things ? And what is the database for the shippement document ?

thx in advance for all your advice

  • Suggested answer
    Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

    what was the field id in sales header and Sales Shipment Header tables?

    If field ids are same in both tables then data will transfer automatically.

  • LaurentD Profile Picture
    95 on at

    the field are shipping agent code in my Sales Orders and my shippement

    but they don't transfert automatically

    i make lot's of test, and never transfert

  • Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

    are they standard fields or custom?

  • LaurentD Profile Picture
    95 on at

    only standard fields

  • Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

    I just tested it in my environment and Shipment Agent code is transferred successfully to Sales shipments.

  • LaurentD Profile Picture
    95 on at

    ok i don't have name the correct document

    it's : Warehouse Shipment Header for the table and Warehouse Shipment for the page

  • LaurentD Profile Picture
    95 on at

    Yes for that i m ok

    but i speak about Warehouse Shippement ; not Posted Sales shipment

  • LaurentD Profile Picture
    95 on at

    ok, i found how to make it

    just create global var and pass them to the right document

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 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans