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

Community site session details

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

How do I intercept the Delete button in Manage on the ribbon?

(0) ShareShare
ReportReport
Posted on by 20

I am trying to intercept the Delete button on the Purchase Orders card.  We want to prevent someone from delete a PO if here are certain conditions in the item lines, such as Pending Invoice Qty's having a value.  Is this possible?  I have looked everywhere in the code and tested a message where I thought it was but the message never appeared when I pressed Delete.

Thanks

I have the same question (0)
  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,261 Super User 2025 Season 2 on at
    RE: How do I intercept the Delete button in Manage on the ribbon?

    You can insert your login on the OnDelete event on the Purchase Header table.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How do I intercept the Delete button in Manage on the ribbon?

    Hello Miles,

    In PO header, you have an option called "Customize Ribbon".

    Right-click anywhere in the ribbon, that will show two options,

    Collapse Ribbon 

    Customize Ribbon 

    4401.Delete.png

    Click the Customize option as shown above. It will open a new window, 

    Delete-1.png

    In the New window, expand the manage option, then select the delete. On the right side, click the remove option and ok. Refresh the Navision. The delete will be removed from the Purchase order. You can use this to customize the fields in the ribbon.

    I hope this helps.

  • Suggested answer
    Gulshan Shubham Profile Picture
    2,210 on at
    RE: How do I intercept the Delete button in Manage on the ribbon?

    For the condition you have mentioned i.e. of Po is having pending incooce quantity, then in this case the system itself restricts deletion of document. So, no need to do anything else.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans