Message 1 of 2
Determine Tenant Environment During Script Execution

Not applicable
10-13-2016
10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to know if my script is executing in the preview tenant or the production tenant at run-time. This will allow me to ensure that preview tenant scripts only interact with development/test/sandbox external APIs and production tenant scripts only interact with external production APIs Is it possible to determine the environment at run-time within a script?