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)
Answered

Purchase order reason codes

(0) ShareShare
ReportReport
Posted on by 3,254

hi,

is there a way to force reason code in case the PO is modified and reconfirmed? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    305,265 Super User 2026 Season 1 on at

    Hi George,

    If you are using the workflow, you could add a condition to see if the reason code is filled or not. If not, there could be an automatic rejection action.

  • Verified answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    if reason code mandatory for all purchase order , you can set this object mandatory property yes or setup workflow as Andre said

    If  reason code mandatory in some cases , you  need customization as sukurat said

  • Verified answer
    AhmedHafez Profile Picture
    Microsoft Employee on at

    Hi Georgek,

    if condition in validate writing method in the form  data source will solve your issue

    if(purchtable.documentstate == versioningDocumentState::confirmed && purchtable.ReasonTableRef == 0)
    
    {
    
    ret = false;
    
    error("reason code is mandatory");
    
    }


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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans