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 :
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
    303,730 Super User 2026 Season 1 on at

    Moved to the Dynamics 365 Supply Chain Management forum.

  • Suggested answer
    Martin Dráb Profile Picture
    239,040 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

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 > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 296

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 234 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 145 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans