Nav 2013 R2 restrict delete on all posted documents.
zulq
Member Posts: 204
How can I stop all users from deleting posted documents including super users?
Few years ago we were not existing and few years to come we would be in the grave! So what will benefit us in the grave?
0
Answers
-
Set the property DeleteAllowed to 'No' for all posted document Pages.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Sorry for not mentioning but have already done it at that level.Few years ago we were not existing and few years to come we would be in the grave! So what will benefit us in the grave?0
-
Juhl wrote:Put Logic on the Table instead.
Put an ERROR() in the OnDelete trigger og the tables.
This is the same thing done by MS on some posted documents tables on IT localization
* Daniele Rebussi * | * Rebu NAV Diary *0 -
What I have done is put an error on all header tables if
posting date <> 0D
. Is this the best way to do it?Few years ago we were not existing and few years to come we would be in the grave! So what will benefit us in the grave?0 -
Quite redundant, because a posted Document should have a posting date anyway.
just put an Error('not allowed') or whatever you like on the beginning of the OnDelete Trigger of the table.Austrian NAV/BC Dev0 -
Unposted sales documents (quotes, invoices) are stored in table 37 - Sales Line (correct me if im wrong on the ID)
When the Invoice/Shipment is posted the concerning SalesLine's get deleted and SalesInvoiceLine's/SalesShipmentLine's are generated by the posting routines.
So if you dont want Posted Documents to be deleted you want to insert the Error in the onDelete of:
* Sales Invoice Line
* Sales Shipment Line
at least on the sales side of things.Austrian NAV/BC Dev0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

