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,086

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,382 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

  • Inkey Solutions Profile Picture
    2,086 on at
    RE: Need to do Blank Shipment date on sales Order.

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,401

#2
Sumit Singh Profile Picture

Sumit Singh 2,692

#3
YUN ZHU Profile Picture

YUN ZHU 1,935 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans