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 :
Microsoft Dynamics AX (Archived)

Implementing Operations After the Confirmation of a Purchase Order

(0) ShareShare
ReportReport
Posted on by

Hi Team,

Trying to track the confirmation of a purchase order via x++, below are what I've already tried but nothing works

1.  Added post event handlers on the Tables:

  • PurchTable - On the Update method, trying to check if the status of the document state has been changed to Confirmed.
  • PurchParmTable - On the insert method, from the looks of it, whenever a confirmation was done on a Purchase order, a record here is insert, so basically Im looking to just trigger from that. 

2. Did some overlayering on the button click of the "Confirm" on purchase order, this one works, but if the confirmation didnt come in from the button click, it does not.

3. Did some overlayering on the PurchFormLetter class on the main method, this one looks like it works, but the issue is when multiple PO's are selected, gets really tricky.

So with those options, I think the reason why I cannot track the changes is because of the nature or the Purchase order form is that, the data only changes are applied directly on the datasource. Because  if you would look athe screenshot below, before the  breakpoint, the state of the po is not yet confirmed, but after it, it becomes confirmed, I added breakpoints on all the tables related to the operation, but none of those were hit.

poconfirm.PNG

Let me know how I can overcome this. Thanks.

*This post is locked for comments

I have the same question (0)
  • Chaidir Ali Assegaf Profile Picture
    202 on at
    RE: Implementing Operations After the Confirmation of a Purchase Order

    Hi Icemist,

    I have exactly the same problem like you do.

    Up this post, hope that someone can answer this question.

    Best Regards,

    Chaidir Ali Assegaf

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans