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

Notifications

Announcements

No record found.

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
    597 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
    597 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans