We are implementing a Dynamics 365 Finance and Operations system, which interact with (several) both external systems and users (via the form).
We wonder if it's possible to recognize if a session is coming from a real user (who is using forms) or an external system, with a global function in Dynamics 365 Finance and Operations, a global function like for example curUserId(), but which is able to distinguish if a session is coming from a 'real' user and an external system for example a POS system, a warehouse system or an import/export (batch) task.
All code runs in a context of a user and there aren't any unreal users. For instance, you asked about batch tasks. If a user decides to run some logic in a batch rather than interactively, it doesn't mean that the batch doesn't run under his or her user account.
Instead of the user type, you could look at the session type.
Also, you may have integrations utilizing the mapping between an Entra ID and an F&O user ID. You may be looking for these user IDs.
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.