One of our apps calls for Business Central to communicate with our external service some key details about the tenant:
- The Azure tenant id
- The type of environment (production or sandbox)
but how to get at those details?
Maybe I’m a simpleton and maybe the information is out there somewhere and I just couldn’t find…but I couldn’t.
Turns out there is a codeunit (#417) called Tenant Management with a bunch of function to provide just this sort of information.
Good to know.
PS: in case you’re wondering, GetAadTenantID returns ‘common’ for an on-premise installation.