web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans