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

Printing after posting a warehouse shipment document : Warehouse insight | Insight works

(0) ShareShare
ReportReport
Posted on by 46

Hi everyone,

I’m trying to implement a functionality that automatically prints Warehouse Shipment documents right after they are posted.

To achieve this, I subscribed to an event that should trigger the printing after posting. However, when I test the process using my PDA device (via Warehouse Insight by Insight Works), I still encounter an error message and the document is not printed.

Has anyone successfully implemented automatic printing in this scenario, especially when using Warehouse Insight?

Any guidance on:

  • Best practices for triggering reports automatically

  • Or handling this specifically with Warehouse Insight / PDA devices

would be greatly appreciated.

Thanks in advance!

 
[EventSubscriber(ObjectType::CODEUNIT, CODEUNIT::"Sales-Post", 'OnAfterPostSalesDoc', '', false, false)]
local procedure OnAfterPostSalesDoc(var SalesHeader: Record "Sales Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesShptHdrNo: Code[20]; RetRcpHdrNo: Code[20]; SalesInvHdrNo: Code[20]; SalesCrMemoHdrNo: Code[20]; CommitIsSuppressed: Boolean; InvtPickPutaway: Boolean; var CustLedgerEntry: Record "Cust. Ledger Entry"; WhseShip: Boolean; WhseReceiv: Boolean; PreviewMode: Boolean)
var
    SalesShipmentHeader: Record "Sales Shipment Header";
begin
    if SalesShptHdrNo <> '' then begin
        SalesShipmentHeader.SetRange("No.", SalesShptHdrNo);
        SalesShipmentHeader.PrintRecords(false);
    end;
end;
 
 
 
I have the same question (0)

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans