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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Creation of Purchase order from Purchase Requisition through code/ X++

(0) ShareShare
ReportReport
Posted on by 10

Hello Everyone,

There is situation that I have to create PO based on some parameter from Purchase Requisition through code in D365 fo PU 37.

I was not using standard auto PO process from front end because I need to run this process conditionally and update some custom fields as well.
I found code on google to create PO from PR but that code is directly inserting values to PO tables.

My thinking is that there are already code is available to create PO from PR in standard, I want to use the same classes and method.

If anyone can help me with class and method name where I can pass my purchReqID to create PO and later I'll update custom fields.

Thanks for the help in advance.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,064 Super User 2025 Season 2 on at

    Moved to the Dynamics 365 Supply Chain Management forum.

  • Suggested answer
    Martin Dráb Profile Picture
    237,939 Most Valuable Professional on at

    Look at PurchAutoCreate_PurchReq class.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 118 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans