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

Need to do Blank Shipment date on sales Order.

(0) ShareShare
ReportReport
Posted on by 2,100

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,397 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,100 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

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 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans