web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,075

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)
  • Inkey Solutions Profile Picture
    2,075 on at
    RE: Need to do Blank Shipment date on sales Order.

    Thank you so much, it is work.

  • Verified answer
    DAnny3211 Profile Picture
    11,201 on at
    RE: Need to do Blank Shipment date on sales Order.

    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

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans