Hi Vomeshwari, to audit deletions in Mendix especially those caused by cascading via association delete behavior follow these best practices:
I hope this helps you! :)
Hello Vomeshwari,
You can create sub microflow before delete as given below refrence on each entity and you can create a custom audit entity to store logging information.
there is some Audit trail marketplace module also which are useful on some scenario.
When using the default delete behavior, a before delete event is the most appropiate way to handle this.
However, a more common best practice is to NOT use the default delete behavior, but handle deletes through microflows in ALL cases. Which can be best done by creating a submicroflow, which will handle the delete of the main record and the referenced records. This submicroflow should be the one and only microflow used for deletion.
Your case of creating an audit trail, can be handled in a separated sub microflow, executed before the delete submicroflow