Compliance Categorization is not returned via the Metadata API for Task.Subject and Task.Description if these are encrypted
Activities , API , Platform Encryption
Last updated 17 days ago ·Reference W-8822868 ·Reported By 1 users
In Review
Summary
ComplianceGroup (Compliance Categorization) is not returned via the Metadata API for Task.Subject and Task.Description if these are encrypted.
Repro
1) Create a perm set with the "Manage Encryption Keys" system permission and assign it to the admin.
2) Go to Setup | Platform Encryption | Advanced Settings and turn on "Deterministic Encryption"
3) Go to Setup | Platform Encryption | Key Management, choose "Data in Salesforce" as the tenant secret type, click Generate Tenant Secret, then choose "Data in Salesforce (Deterministic)" as the tenant secret type, and click Generate Tenant Secret again
4) Go to Setup | Platform Encryption | Encryption Policy, click Encrypt Fields and select Task.Subject (Deterministic - Case sensitive) and Task.Description
5) Set Compliance Categorization on Task.Description, Task.Subject and Task.Email to GDPR
6) Perform a metadata API retrieve() using below manifest:
package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">;
<types>
<members>Task.Description</members>
<members>Task.Subject</members>
<members>Task.Email</members>
<name>CustomField</name>
</types>
<version>50.0</version>
</Package>
Actual result: <complianceGroup> is not specified for the encrypted fields.
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">;
<fields>
<fullName>Description</fullName>
<encryptionScheme>ProbabilisticEncryption</encryptionScheme>
</fields>
<fields>
<fullName>Email</fullName>
<complianceGroup>GDPR</complianceGroup>
</fields>
<fields>
<fullName>Subject</fullName>
<encryptionScheme>CaseSensitiveDeterministicEncryption</encryptionScheme>
<type>Picklist</type>
</fields>
</CustomObject>
Expected result: <complianceGroup> should be returned for the mentioned encrypted fields as well:
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">;
<fields>
<fullName>Description</fullName>
<complianceGroup>GDPR</complianceGroup>
<encryptionScheme>ProbabilisticEncryption</encryptionScheme>
</fields>
<fields>
<fullName>Email</fullName>
<complianceGroup>GDPR</complianceGroup>
</fields>
<fields>
<fullName>Subject</fullName>
<complianceGroup>GDPR</complianceGroup>
<encryptionScheme>ProbabilisticEncryption</encryptionScheme>
<type>Picklist</type>
</fields>
</CustomObject>
Workaround
N/A
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.
