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

Notifications

Announcements

Community site session details

Community site session details

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

From Salesline I am posting to WarehouseShipment it is not validating

(0) ShareShare
ReportReport
Posted on by 2

Hi ALL,

 In the Salesline i created a custom field as "Shipment UOM" , in the  WarehouseShipment also i created a custom Field "Shipment UOM", I want to populate the value of saleline custom field to warehouse shipment line, but it is not populating, can anyone help me, I am attaching my code here, I have tried with onvalidate and in table level and onaftergetrecord in page level but it is not populating.

pastedimage1680088253419v1.png

Thanks & Regards,

Sams

I have the same question (0)
  • Suggested answer
    Ben Baxter Profile Picture
    6,678 Super User 2025 Season 2 on at

    Are you sure this is a necessary modification?  Every Item can have a "Sales Unit of Measure" defined on the Item Record.  This value defaults to the Sales Line when a new Sales Document Line is created.  If your base/purchase UOM is different the Warehousing function can help with the Pick/Place of different UOM.

    I would encourage you to test the base capability before pushing your modification.  Perhaps reach out to your Business Central partner to confirm the capability.

  • Verified answer
    Mohana Yadav Profile Picture
    61,019 Super User 2025 Season 2 on at

    This code will execute when you validate the field in Warehouse Shipment Line.

    You have to use the subscribers in function FromSalesLine2ShptLine of codeunit 5750 "Whse.-Create Source 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

News and Announcements

Season of Giving Solutions is Here!

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 1,472

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 684 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans