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

Determine sales post event from warehouse shipment event

(0) ShareShare
ReportReport
Posted on by 86

Hi All,

Our end goal is to send an email to the customer from the warehouseshipment screen with the attached invoice that is generated when the warehouse shipment is posted and sales order is invoiced. We subscribed to the Warehouse Shipment (Yes/No) event which only returns the warehouseshipment. How do we get the invoice generated during this step? We tried subscribing to the Sales Post event and then the Warehouse Shipment (Yes/No) event but the sales invoice number is unable to be referenced in the second local procedure. It appears that the global variables we created get wiped in the final local procedure.

Any help is much appreciated.

Cheers,

Gareth

  • Verified answer
    garydee Profile Picture
    86 on at

    We have figured this one out. First off you cannot pass information from one event subscription to the next. Fortunately, code unit 80 which is the post sales line event returns all the information you need to determine what path the posted invoices has come from. It returns the invoice header and a boolean called whseShip. If this boolean is true then the sales order has been posted from the warehouse shipment screen (or has a warehouse shipment attached to it).

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans