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

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

I have the same question (0)
  • Verified answer
    garydee Profile Picture
    86 on at
    RE: Determine sales post even from warehouse shipment event

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,267

#2
Sumit Singh Profile Picture

Sumit Singh 2,098

#3
YUN ZHU Profile Picture

YUN ZHU 1,766 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans