Skip to main content
Version: V3 (Ignition 8.3)

system.mes.dashboard.isUrlUnique

Description​

Checks if a URL is unique and available for use by a specific user. A URL is unavailable if it already exists for either the same username or any public dashboard (username is null).

Permissions​

This method requires the DASHBOARD.READ.VALIDATE permission.

Syntax​

system.mes.dashboard.isUrlUnique(url, username)
system.mes.dashboard.isUrlUnique(url, username, excludeId)

Parameters​

Method 1: URL and Username​

ParameterTypeNullableDescription
urlStringFalseThe URL to check for uniqueness.
usernameStringFalseThe username that will own the dashboard.

Method 2: URL, Username, and Exclude ID​

ParameterTypeNullableDescription
urlStringFalseThe URL to check for uniqueness.
usernameStringFalseThe username that will own the dashboard.
excludeIdString (ULID)TrueAn existing dashboard ID to exclude from the uniqueness check (useful when updating).

Returns​

Returns a Boolean indicating whether the URL is unique and can be used.

Code Examples​

# Check URL availability for current user
isUnique = system.mes.dashboard.isUrlUnique('production-overview', 'operator01')
print(isUnique)

# Check URL availability while updating an existing dashboard
isUnique = system.mes.dashboard.isUrlUnique('production-overview', 'operator01', '01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(isUnique)