Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Disable Delete Action for Pending Approval and Released Documents

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I would like to know how to Disable Delete Action for Pending Approval and Released Documents in Finance. Is it possible to do that in Nav?

Please let me know how to do that?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Disable Delete Action for Pending Approval and Released Documents

    If you want to control that based on the status, then you need to add customization in the OnDelete Trigger to check the status and throw an error.  

    Adding this in OnDeleteRecord will check the status should be Open to delete the document.

    TESTFIELD(Status,Status::Open)

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Disable Delete Action for Pending Approval and Released Documents

    Hi Achmad,

    Go to that page, and set the DeleteAllowed = No

    Hope it will solve your problem.

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

News and Announcements

Announcing Category Subscriptions!

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,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans