web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Event to Subscribe to Transfer Custom Fields from Warehouse Shipment Header to Sales Invoice

(0) ShareShare
ReportReport
Posted on by 92
Hi Experts,
 
I'm new to AL, just wanted to explore what's event to subscribe to transfer value from:
1) Warehouse Shipment Header to Posted Sales Shipment Header
2) Posted Sales Shipment Header Custom Field to Sales Invoice Header.
 
Background:
My organisation using a Basic Warehouse setup where required Warehouse Shipment / Receipt only.
I'd created some custom fields to let the warehouse personnel to fill in when they are filling in Warehouse Shipment.
Eventually these custom fields required to be printed on Sales Invoice.
 
Currently, I'm only know how to transfer the value from those custom field in Sales Order to Posted Documents via "Sales-Post".
 
Regards,
Kevin
I have the same question (0)
  • Suggested answer
    Ramiz Profile Picture
    637 on at
    Hi,

    You can subscribe to the following event from codeunit Sales-Post and pass your values.

  • Kev L Profile Picture
    92 on at
    Hi @Ramiz​​​​​​​,
     
    Thanks for your assistance.
    I'm able to transfer fields from Warehouse Shipment to Sales Shipment Header using OnBeforeSalesShptHeaderInsert, but I'm not able to pass the values from Sales Shipment Header to Sales Invoice Header when I use Get Shipment Lines function.
    Do you have other recommendation?
     
    Regards,
    Kevin
  • Suggested answer
    Ramiz Profile Picture
    637 on at
    Hi Kev,

    Get Shipment Lines function insert data into Sales Header table (Sales Invoice) and when you post it and if the fields have same number as of in Sales Invoice Header it will be automatically transfered to Sales Invoice Header table. 
     
     
    You should check codeunit 64 Sales-Get Shipment. 

    Here you can pass value from Sales Shipment to Sales Header. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans