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 :
Small and medium business | Business Central, N...
Suggested Answer

Reopen a Purchase Order to update via API v2

(1) ShareShare
ReportReport
Posted on by 16
Hi, I have no experience with Dynamics 365 Business Central. I'm building a Purchase Order integration from an external application to D365.
It appears to me to update an existing Purchase Order, it needs to be reopened. But, I haven't found a way to reopen a PO using the standard API. 
 
 
If I tried using the Update PO request to set the status field to "Open" resulted in an error "Control 'status' is read-only".
 
I do not have access and the D365 skills to develop a custom API. Is there a way to reopen a PO using the standard API v2? If not, is there a workaround?
 
I have the same question (0)
  • Suggested answer
    Umut Dogan Koc Profile Picture
    87 on at
    Hello,
     
    Editable property of Status field is false in "APIV2 - Purchase Orders" , that's why it can't be modified through patch request. A custom API can be developed. 
     
  • Suggested answer
    Yi Yong Profile Picture
    2,700 Super User 2026 Season 1 on at
    Hello,
     
    You should not edit the ‘Status’ field directly, as it may cause downstream issues such as workflow, prepayment etc.
     
    You can use Codeunit "Release Purchase Document" to change the field status.
    ReleasePurchaseDocument.PerformManualReopen(Rec);
    ReleasePurchaseDocument.PerformManualRelease(Rec);
  • VTRAN Profile Picture
    16 on at
    @Yi Yong: I don't understand what it means "Codeunit Release Purchase Document"? Did you mean developing some custom code to call this function? or can it be executed via the API?
  • Suggested answer
    YUN ZHU Profile Picture
    99,974 Super User 2026 Season 1 on at
    Hi, It is somewhat similar to my test below, I hope it can give you some hints.
    Dynamics 365 Business Central: Release a Sales Order with Power Automate
     
    PS: Dynamics 365 Business Central: How to use Standard/Custom API Bound Actions
     
    Thanks.
    ZHU
  • VTRAN Profile Picture
    16 on at
    It sounds like this simple action with a standard API is impossible, and custom code/API is the way to go. Thank you all for the answers.
  • Suggested answer
    Yi Yong Profile Picture
    2,700 Super User 2026 Season 1 on at
    Hello VTRAN,
     
    Codeunit Release Purchase Document is a standard codeunit, you need to call this codeunit and run the respective function to set the status of the purchase document.
     
        trigger OnAfterGetRecord()
        var
            ReleasePurchaseDocument: Codeunit "Release Purchase Document";
        begin
            ReleasePurchaseDocument.PerformManualRelease(Rec);
        end;

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,024 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,145 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 705 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans