How to delete all transaction in Legal entity in D365FO?
Can we make copy of sysdatabasetransdelete?
How to delete all transaction in Legal entity in D365FO?
Can we make copy of sysdatabasetransdelete?
I agree with others on this thread not to take short cuts with this. But why you would like to delete all the transactions first place?
Hi Rogerio,
There is no replacement for the class. You can indeed consider creating a new legal entity. Can you tell your reason for this requirement?
Is there any replacement for this class in D365 or would the guidance be to setup a new empty legal entity if clearing transactions is ever needed?
I'm with Joris here. At least do not use it in a production environment or golden configuration environment which will be used at go-live.
SysDatabaseTransDelete is marked as obsolete in Dynamics365.
This class was NEVER maintained for Dynamics365 so does not result in a valid database. Do NOT use it.
Deleting records table wise will be too risky and data flows to multiple tables.
Also posted data deletion will throw error.
Hi Udit Kumar
Similar questions at the forum link
The SysDatabaseTransDelete can be extended
https://www.axperience.ch/en/deleting-one-single-company-legal-entity-in-d365fo/
regards
There is a standard class and it also has delegates for both global and and company specific trans tables. You can make use of those to add your own custom transaction tables.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156