Set sensitivity label action enables you to set the sensitivity label when creating Microsoft Excel workbook or when you open an existing workbook that does not have a sensitivity label .

Prerequisites

System administrator creates a sensitivity label in the Microsoft Purview portal before sharing it with the users.. For more information, see Create and configure sensitivity labels.

If your administrator has enforced a policy for sensitivity labels, setting a label becomes mandatory. When creating or opening a workbook, you will not be able to save it without providing a label. Failure to do so will cause your automation to break.

Settings

  • In the Sensitivity label field, click one of the following tabs to specify the GUID:
    • Credential: To select an existing credential such as a locker, credential or attribute from Credential Vault, click Choose.

      For more information, see Credentials and credential variables in the Bot editor.

    • Variable: To enter or select a variable that holds the credential information.

      For more information, see Your variables (user-defined).

    • Insecure string: To enter a string value.

      (Optional) Click the Insert a value icon to select an existing variable or global value.

  • In the Session name, select one of the following tabs:
    • Session name

      Enter the name of the session used to open the workbook with the Open action.

    • Variable

      Select a Excel advanced session variable that was created from Set session variable action or from parent automation (bot.