Skip to main content

How to access device info via custom script?

if (!window.customScriptAPI ||
!window.customScriptAPI.clientInterface ||
!window.customScriptAPI.clientInterface.hasFeature('getDeviceTags'))

{ *return*; }
let deviceTagsJson = await window.customScriptAPI.clientInterface.callFeature('getDeviceTags', [], true);
let deviceTags;
if (deviceTagsJson)

{ deviceTags = JSON.parse(deviceTagsJson); deviceTags = deviceTags.map(tag=> tag.toLowerCase()); }

img.png