Use the methods described below to find the unique six-digit numbers corresponding to your digital workplace's labels. Some actions, such as configuring the Recognition Center Plus, require you to find and use these values.
Sections in this article:
Find label IDs using the browser
- Select Control Panel.
- Under Settings, select Manage Labels.
- Find the label you want the ID of.
- Right-click the label and select Inspect.
- Copy the number found in the id attribute of the input element.
- Repeat steps 2-5 for each ID you need.
Find the IDs of all labels in a category using JavaScript
- Select Control Panel.
- Under Settings, select Manage Labels.
- Open your browser's developer tools.
- Paste the following code snippet into the Console tab of the developer tools and press Enter.
const script = document.createElement("script") script.type = "text/javascript" script.src = "https://devreltools.blob.core.windows.net/scripts/utils.js" document.head.appendChild(script)
- Paste the following code snippet into the Console tab and replace the
CategoryName
with the name of the category that contains the labels you want IDs for (keep the quotation marks around the category's name). Then press Enter.
getLabelIds("CategoryName");
The script outputs the names and IDs of labels that belong to the specified category into the console. For example:
------------------------------------
Label name: Marketing
Label ID: 265989
------------------------------------
Label name: Communications
Label ID: 265990
------------------------------------
Label name: IT
Label ID: 265991
------------------------------------
Label name: ELT
Label ID: 265992
------------------------------------