getCurrentSystem

The getCurrentSystem function allows retrieving the SystemObject of the system where the script is currently being executed.

Syntax

var user = getCurrentSystem();

 

Result

  • The SystemObject related to the system where the script is running.

Examples of Use

 

How to get the current system name and id

var currentSystem = getCurrentSystem();

console(currentSystem.systemId);

console(currentSystem.systemName);