Environment
The environment (env) object is the entry point to the context in which other objects exist that represent business entities in the platform such as the facility, devices and endpoints, allowing access to their methods and properties in action script development.
Properties
| (integer) clientID |
|---|
| The clientID property gets the unique client identifier to which the facility belongs. |
| Examples |
| let client= env.clientID env.log(client) |
| (object) facility |
|---|
| The facility property returns a facility object, see facility for more information |
| Examples |
| let facility = env.facility env.log(facility) |
| facility[] facilities |
|---|
| The facilities property returns an array of facility objects, see facility for more information |
| Examples |
| let facilities = env.facilities env.log(facilities ) |
| (integer) facilityID |
|---|
| The facilityID property gets the unique identifier of the facility |
| Examples |
| let facilityId = env.facilityID env.log(facilityId) |
| (bool) testMode |
|---|
| The testMode property indicates whether the script is running in test mode or not |
| Examples |
| let test = env.testMode env.log(test) |