UiPath Documentation
activities
latest
false

Productivity activities

AssignSensitivityLabel

Assigns a sensitivity label to a file in OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Syntax

void AssignSensitivityLabel(
	IFile file,
	SensitivityLabelActionType actionType,
	string sensitivityLabelId,
	string justification = null,
	bool waitForCompletion = false
)
void AssignSensitivityLabel(
	IFile file,
	SensitivityLabelActionType actionType,
	string sensitivityLabelId,
	string justification = null,
	bool waitForCompletion = false
)

Parameters

file IFile : The file to assign the sensitivity label to.

actionType SensitivityLabelActionType : The action to perform (Add, Update, or Clear).

sensitivityLabelId String : The ID of the sensitivity label to assign. Not required when clearing a label.

justification String (Optional) : Justification text for audit purposes. Required when downgrading or removing a label.

waitForCompletion Boolean (Optional) : Specifies whether to wait for the assign sensitivity label action to complete.

  • Syntax
  • Parameters

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated