Call Stack without Error

Have you ever been wondering how a certain value has been changed or from which part in NAV a record has been deleted. So did I and I needed to find the exact code where the value was updated or the record was deleted.
To track the table changes you can use the “Change Log” functionality, but there you can only see who has changed a value and when they did.

So, I have been searching for a why and I came past the GETERRORCALLSTACK function.
This function give me the overview of what triggers NAV has did before showing me an ERROR.
The only problem is that I don’t have an error to raise. I only have a value that is changed or a record that was deleted.
Continue reading