Skip to main content

Notifications

Announcements

No record found.

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 422

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

  • Suggested answer
    Avinash B Profile Picture
    Avinash B 1,455 on at
    RE: How to change the document Released state to Open trough code?

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans