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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Document sending profile - skip shipment document confirmation

(6) ShareShare
ReportReport
Posted on by 81
Hi all, I receive a requirement to skip this shipment confirmation message after "Post and Send" in sales order. 
Do you guys know where or which event subscriber that I can use? Thank you in advance.

I have the same question (0)
  • Suggested answer
    TAHER_El_Mehdi Profile Picture
    836 on at

    That confirmation comes from the local procedure that uses the label:

    SendShipmentAlsoQst: Label 'You can take the same actions for the related Sales - Shipment document.\Do you want to do that now?';
     

    • Event: OnBeforeConfirmDownloadShipment
    • Publisher: Codeunit 80 "Sales-Post"
    • Pattern: Result (Boolean) + IsHandled (Boolean)
  • Verified answer
    TAHER_El_Mehdi Profile Picture
    836 on at

    If your requirement is to skip the prompt and not repeat the action for the related shipment, this subscriber is sufficient:

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Post", 'OnBeforeConfirmDownloadShipment', '', true, true)]
    local procedure OnBeforeConfirmDownloadShipment_Skip(
        var SalesHeader: Record "Sales Header";
        var Result: Boolean;
        var IsHandled: Boolean)
    begin
        Result := false;
        IsHandled := true;
    end;
  • HelioBuenos Profile Picture
    81 on at
    Hi @TAHER Mehdi, thank you for your answer, it works!
    but I face another issue which is the invoice report is not downloaded. It is supposed to download the invoice before the shipment confirmation
  • TAHER_El_Mehdi Profile Picture
    836 on at
     You are welcome; I think you have to set Result := true; 
    if my response is answer your question mark it as verified answer!
    Happy coding!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans