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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to change the document Released state to Open trough code?

(0) ShareShare
ReportReport
Posted on by 450

So in my code i've implemented a line that should delete my warehouse shipment once it's been posted. Reason for that is because the customer wants to create a new one for the next partial shipment rather than opening the old one. Now implementing that in code is not really an issue but it is when the document's state is set on Released. So i was wondering in what way i can set the status of my warehouse shipment from released to open trough code so that i can delete the record?

Thanks in advance.

EDIT:

I found out there is a field "Status" that can be modified but appearently not after the action of posting since i get the error message that some fields might not have been updated

I have the same question (0)
  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    Did you try Reopen function from Codeunit "Whse.-Shipment Release"?

    Cheers

    Avinash B

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 562 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 503 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 332 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans