Yes you can. Declare a variable with data type record and suptype 2000000006. 2000000006 is the table ID of company (this is a virtual table). if you delete a company use the DELETE(TRUE).
It has worked perfectly thanks alot. By any chance does anyone know how to delete all the ledger entries. Usually I delete them through sql but by any chance has anyone got any idea how it can be done throguh Codeunit?
Comments
It has worked perfectly thanks alot. By any chance does anyone know how to delete all the ledger entries. Usually I delete them through sql but by any chance has anyone got any idea how it can be done throguh Codeunit?
It will clear all of your posted history.
Where do you find this codeunit??? I can't find it in the WW version and the US version.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
It is removed in 5.0. 5.0 has rim v2, which doesn't have this feature.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n