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...
Answered

Need to do Blank Shipment date on sales Order.

(0) ShareShare
ReportReport
Posted on by 2,122

Hi All,

I want to Shipment date should not be automatically filled when creating a new sales order. currently It is filled Automatically, and it is today date. I have tried the below code but that is not work for me. Can anyone give me a solution? What was the problem?

pastedimage1678529522050v1.png

//Code

tableextension 50101 INK_SalesOrder extends "Sales Header"
{
    trigger OnInsert()
    begin
        if "Sell-to Customer Name" <> '' then begin
            "Shipment Date" := 0D;
            Modify();
        end;
    end;
}
Thank You.
I have the same question (0)
  • Verified answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hello

    subscribe to this event:

    OnInitRecordOnBeforeAssignmentShipmentDate(Rec, IsHandled);

    like this:

    [EventSubscriber(ObjectType::Table, 36, 'OnInitRecordOnBeforeAssignShipmentDate', '', false, false)]

    local procedure MyProcedure(var SalesHeader: Record "Sales Header";var IsHandled: Boolean)

    begin

       IsHandled:=true;

    end;

    check my answer if it was helpful, thanks

    DAniele

  • Inkey Solutions Profile Picture
    2,122 on at

    Thank you so much, it is work.

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 686 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 447 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans