Codeunit "Data Classification Mgt."
Exposes functionality to handle data classification tasks.
Properties
| Name | Value |
|---|---|
| Access | Public |
Methods
PopulateDataSensitivityTable
Creates an entry in the Data Sensitivity table for every field in the database that is classified as Customer Content, End User Identifiable Information (EUII), or End User Pseudonymous Identifiers (EUPI).
procedure PopulateDataSensitivityTable()
SetDefaultDataSensitivity
Updates the Data Sensitivity table with the default data sensitivities for all the fields of all the tables in the DataPrivacyEntities record.
procedure SetDefaultDataSensitivity(var DataPrivacyEntities: Record "Data Privacy Entities")
Parameters
| Name | Type | Description |
|---|---|---|
| DataPrivacyEntities | Table System.Privacy."Data Privacy Entities" |
The variable that is used to update the Data Sensitivity table. |
SetSensitivities
procedure SetSensitivities(DataSensitivity: __MissingTypeSymbol__, Sensitivity: Option)
Parameters
| Name | Type | Description |
|---|---|---|
| DataSensitivity | __MissingTypeSymbol__ | |
| Sensitivity | Option |
SyncAllFields
Synchronizes the Data Sensitivity table with the Field table. It inserts new values in the Data Sensitivity table for the fields that the Field table contains and the Data Sensitivity table does not and it deletes the unclassified fields from the Data Sensitivity table that the Field table does not contain.
procedure SyncAllFields()
GetDataSensitivityOptionString
Gets the values that the "Data Sensitivity" field of the Data Sensitivity table can contain.
procedure GetDataSensitivityOptionString(): Text
Returns
| Type | Description |
|---|---|
| Text |
A Text value representing the values that the "Data Sensitivity" field of the Data Sensitivity table can contain. |
SetTableFieldsToNormal
Sets the data sensitivity to normal for all fields in the table with the ID TableNumber.
procedure SetTableFieldsToNormal(TableNumber: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNumber | Integer |
The ID of the table in which the field sensitivities will be set to normal. |
SetFieldToPersonal
Sets the data sensitivity to personal for the field with the ID FieldNo from the table with the ID TableNo.
procedure SetFieldToPersonal(TableNo: Integer, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
The table ID |
| FieldNo | Integer |
The field ID |
SetFieldToSensitive
Sets the data sensitivity to sensitive for the field with the ID FieldNo from the table with the ID TableNo.
procedure SetFieldToSensitive(TableNo: Integer, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
The table ID |
| FieldNo | Integer |
The field ID |
SetFieldToCompanyConfidential
Sets the data sensitivity to company confidential for the field with the ID FieldNo from the table with the ID TableNo.
procedure SetFieldToCompanyConfidential(TableNo: Integer, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
The table ID |
| FieldNo | Integer |
The field ID |
SetFieldToNormal
Sets the data sensitivity to normal for the field with the ID FieldNo from the table with the ID TableNo.
procedure SetFieldToNormal(TableNo: Integer, FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
The table ID |
| FieldNo | Integer |
The field ID |
DataPrivacyEntitiesExist
Checks whether any of the data privacy entity tables (Customer, Vendor, Employee, and so on) contain entries.
procedure DataPrivacyEntitiesExist(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if there are any entries and false otherwise. |
AreAllFieldsClassified
Checks whether the Data Sensitivity table contains any unclassified entries.
procedure AreAllFieldsClassified(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if there are any unclassified entries and false otherwise. |
IsDataSensitivityEmptyForCurrentCompany
Checks whether the Data Sensitivity table contains any entries for the current company.
procedure IsDataSensitivityEmptyForCurrentCompany(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if there are any entries and false otherwise. |
InsertDataSensitivityForField
Inserts a new entry in the Data Sensitivity table for the specified table ID, field ID and with the given data sensitivity option (some of the values that the option can have are normal, sensitive and personal).
procedure InsertDataSensitivityForField(TableNo: Integer, FieldNo: Integer, DataSensitivityOption: Option)
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
The table ID |
| FieldNo | Integer |
The field ID |
| DataSensitivityOption | Option |
The data sensitivity option |
InsertDataPrivacyEntity
Inserts a new Data Privacy Entity entry in a record.
procedure InsertDataPrivacyEntity(var DataPrivacyEntities: Record "Data Privacy Entities", TableNo: Integer, PageNo: Integer, KeyFieldNo: Integer, EntityFilter: Text, PrivacyBlockedFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| DataPrivacyEntities | Table System.Privacy."Data Privacy Entities" |
The record that the entry gets inserted into. |
| TableNo | Integer |
The entity's table ID. |
| PageNo | Integer |
The entity's page ID. |
| KeyFieldNo | Integer |
The entity's primary key ID. |
| EntityFilter | Text |
The entity's ID. |
| PrivacyBlockedFieldNo | Integer |
If the entity has a Privacy Blocked field, then the field's ID; otherwise 0. |
GetLastSyncStatusDate
Gets the last date when the Data Sensitivity and Field tables where synchronized.
procedure GetLastSyncStatusDate(): DateTime
Returns
| Type | Description |
|---|---|
| DateTime |
The last date when the Data Sensitivity and Field tables where synchronized. |
IsSupportedTable
Check if the table is supported in the Data Privacy Utilities and Data Classification Worksheet.
procedure IsSupportedTable(TableNo: Integer): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| TableNo | Integer |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the table has type Normal and not obsoleted |
RaiseOnGetDataPrivacyEntities
Raises an event that allows subscribers to insert Data Privacy Entities in the DataPrivacyEntities record. Throws an error when it is not called with a temporary record.
procedure RaiseOnGetDataPrivacyEntities(var DataPrivacyEntities: Record "Data Privacy Entities")
Parameters
| Name | Type | Description |
|---|---|---|
| DataPrivacyEntities | Table System.Privacy."Data Privacy Entities" |
The record that in the end will contain all the Data Privacy Entities that the subscribers have inserted. |
Events
OnGetDataPrivacyEntities
Publishes an event that allows subscribers to insert Data Privacy Entities in the DataPrivacyEntities record.
[IntegrationEvent(False,False)]
internal procedure OnGetDataPrivacyEntities(var DataPrivacyEntities: Record "Data Privacy Entities")
Parameters
| Name | Type | Description |
|---|---|---|
| DataPrivacyEntities | Table System.Privacy."Data Privacy Entities" |
The record that in the end will contain all the Data Privacy Entities that the subscribers have inserted. |
OnCreateEvaluationData
Publishes an event that allows subscribers to create evaluation data.
[IntegrationEvent(False,False)]
internal procedure OnCreateEvaluationData()
OnShowSyncFieldsNotification
Publishes an event that allows subscribers to show a notification that calls for users to synchronize their Data Sensitivity and Field tables.
[IntegrationEvent(False,False)]
internal procedure OnShowSyncFieldsNotification()