General X++ Development
How do I find which method is creating or updating a record in D365FO?
How do I find which method is creating or updating a record in D365FO?
1 answer
Write an answerPut a breakpoint on the table's insert() or update() method and reproduce the action.
When the breakpoint hits, look at the call stack.
That immediately tells you how execution got to the table.
For updates, also compare the current buffer to orig() so you can see which fields actually changed.
This is usually much faster than searching through 50 classes and guessing which one might be responsible.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer