Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Execute business logic after product receipt is created for a purchase order

(1) ShareShare
ReportReport
Posted on by
Hi,
 
I have to execute business logic after a product receipt is generated for a purchase order. I have a purchase order in which I have multiple lines with different quantity(I have split the purchase order and I will be generating product receipt for each purchase order line separately/one by one, from the UI. 
My requirement is that after product receipt is generated/posted for a purchase order line, I want to execute the complete production order cycle for the production order, referenced against this purchase order line from estimate till end (estimate, release, start, report as finished, end) through X++ code. I want to automate the production order cycle after product receipt is generated for the purchase order line against it. I want to perform these steps for all the purchase order lines one by one after the product receipt is generated/posted for each line.
I need assistance on which class/method is executed after product receipt is generated for each line and where exactly should I write my custom code to achieve the above objective. Which standard class/method I need to extend? What should be the trigger point for my code to be executed & where/how it should be written.
 
Thanks for your valuable insights, really appreciate 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans