How to Trace Dialog Calls in D365FO with Infolog Call Stack Utility
One problem in D365FO development is that the Dialog form(used in many places) doesn’t allow you to quickly see the related class. I will show you a simple and helpful feature added to the Infolog call stack utility: the Trace dialog calls option.
Setting up the Trace dialog calls Option
The Trace dialog calls option allows you to see the class and the stack trace information when you open any dialog form in D365FO. You can enable or disable this option for each user by checking or unchecking the Trace dialog calls checkbox in the “Dev Tools – Call stack” form.
Running Periodic Operations with Dialogs
To demonstrate how this feature works, I ran some periodic operations that use dialogs, such as:
These operations use different types of dialogs, such as SSRS Reports, Runbase classes, and SysOperation classes.
Viewing the Class and Stack Trace Information
After running the operations, I opened the Trace form and saw the class and the X++ stack trace information for each dialog.
This feature is very handy when you need to quickly identify the related classes to operations in D365FO. I have used it several times during calls with business users, and it works very nicely. Try it out, and let me know what you think in the comments.