Notifications
Announcements
No record found.
Hi All,
Can any one please guide me how can I check from which class the code has been called.
*This post is locked for comments
Hi,
Not sure If I get your question completely or not but this is the way to check the caller here I am checking if the class from where the particular code is being called is PurchPurchOrderJournalPrint
if (classIdGet(_args.caller()) == classNum(PurchPurchOrderJournalPrint))
Please put more description about your business scenario if it does not help you.
xSession::xppCallStack contains the current call stack, from which you could read out the call sequence.
https://blogs.msdn.microsoft.com/mfp/2013/10/02/x-debugging-tips-and-tricks-2-xsessionxppcallstack/
Please note that you get the same result by putting a breakpoint in, running the process, and checking the call stack.
Do not debug in Production.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2