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)

Perform Insert action once the PR is Approved

(0) ShareShare
ReportReport
Posted on by 435

Hi There,

I need to insert records in my custome table once the PR is approved.

I tried to write the login in modifiedfield method of PurchReqTable but its  not working.

I followed below link but i could find the exact method in which PR status is getting updated to Approved.

https://community.dynamics.com/ax/f/33/t/164932

Can you please guide me the class and method name which is called when updating PR status to approved.

Thanks,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi Mohammed Altaf,

    Try to add your code to setPurchReqTable2Approved method of  PurchReqWFStatusTransitionHelper class.

  • Mohammed Altaf Profile Picture
    435 on at

    Hi evgen Miroshnikov ,

    Thanks for your reply, i tried adding insert logic in the method as you suggested.

    I have completed a workflow which was in inreview state, but nothing happen.

    Workflow got approved and nothing happen in custom table(no insert occurred).

    Thanks

  • Mohammed Altaf Profile Picture
    435 on at

    Hi evgen Miroshnikov ,

    When i am writting the same logic in setPurchReqTable2Cancelled method its working fine.

    But its not working in setPurchReqTable2Approved method.

    Any suggestion why is not working in setPurchReqTable2Approved method.

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