I need to call observer which must be called when a shipment is created and after it is saved. I tried using the event
but it is called before shipment is saved and before there is an entry in the database.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
sales_order_shipment_save_commit_after does what you want.
*_save_commit_after event is triggered after the transaction has been committed, i.e. when the changes were written to the database.
kudos to Fabian Schmengler