Notifications
Announcements
No record found.
Hello,
I need to perform a certain task after the posting of the packing slip is completed with or without errors. I successfully captured to event preceding the posting by extending the clicked method of the "OK" button on the "SalesEditLines" form:
After clicking ok on the above screen and clicking ok on the below dialog:
I need to be able to perform a task after the below dialog is completed:
How can I do this?
Thank you in advance,
Hi Najib,
You can check business events
Sorry, but can you give me more details?
You can get more details in the below link
docs.microsoft.com/.../home-page
What operation do you need to perform after posting packing slip? Form SalesEditLines is called during other processes like Confirmation as well. So, doing a CoC here probably won't work for you.
You can try doing a CoC on insert method of CustPackingSlipJour. Records are inserted into this table after a packing slip is generated successfully.
If business events not suite your requirement then you can check class SalesFormLetter and methods like run.
I am changing the item group before posting based in a certain condition then I need to revert it back to its original value after posting (in both success and failed cases).
Hi Najib.Saad,
The is a method SalesPackingSlipJournalPost.endPost that indicates that the packing slip was posted and you can create CoC for it to add your own post-event code.
as others suggested, you should hook your code in the actual business process or inserting of the packing slip, instead of a button on a form. This way you can also be sure that your code is triggered always when packing slips are created, not only when they are created via the dialog.
Hello guys, thank you for your responses, you guided me to finding the solution, I wrapped the event postSalesOrderPackingSlipProject in the class FormLetterService in CoC and got the desired outcome.
[ExtensionOf(classStr(FormLetterService))] final class FormLetterService_Extension { FormletterOutputContract postSalesOrderPackingSlipProject(SalesFormLetterPackingSlipProjContract _contract) { //ACTION BEFORE POSTING FormletterOutputContract formLetterOutputContract = next postSalesOrderPackingSlipProject(_contract); // ACTION AFTER POSTING return formLetterOutputContract; } }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 503 Most Valuable Professional
André Arnaud de Cal... 434 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional