Skip to main content

1E 8.1 (on-premises)

Device.GetLocation

Method

GetLocation

Module

Device

Library

Core

Action

Gets the user-defined location for this device.

Parameters

(None)

Return values

Location (string): The location value for this device.

Example

@loc = Device.GetLocation();
@loc = SELECT * FROM @loc WHERE Location = "New York";
IF (@loc)
    // Perform action on devices in NY
ENDIF;

Platforms

  • Windows

  • Linux

  • MacOS

Notes

Use Device.SetLocation to set the location value.