Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Disable Delete Action for Pending Approval and Released Documents

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,640 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,023 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans