I need to check in X++ if the caller is EP or Client so I can do some customization if the caller is EP in that code. Please let me know how is it possible
Note: I am using ListPageInteraction class for both EP and AX Client and I have to made some modification to same query (used for both) in case the caller is EP in ListPageInteraction class
Check the NumberSeqNumCache.isEpClient method, it looks like this:
It checks if the current session is of type webuser or worker. If you ware using a client, the session would be of type SessionType::GUI. Mind though that other sessions may also register as type SessionType::Worker, for example batch tasks so this might not work everywhere.