Zum Hauptinhalt springen
CloudStudio

Environment

Das Environment-Objekt (env) ist der Einstiegspunkt zum Kontext, in dem andere Objekte existieren, die Geschäftsentitäten in der Plattform repräsentieren, wie z. B. die Anlage, Geräte und Endpunkte. Es ermöglicht den Zugriff auf deren Methoden und Eigenschaften bei der Entwicklung von Aktionsskripten.

Eigenschaften

(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)

Zuletzt aktualisiert am