You are here:
Use the Consent Event Stream
Use one stream to receive notifications about changes to consent fields or contact information on all core objects. When your users change an object, an event is emitted into the stream with information about the change. This information is available to view for 24 hours.
Required Editions
| Available in: Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions |
| User Permissions Needed | |
|---|---|
| To use the Consent Event Stream: | ReadAllData or PrivacyDataAccess |
The Consent Event Stream monitors changes to consent fields and contact information for these objects:
| Object | Field |
|---|---|
| Authorization Form Consent |
|
| Contact |
|
| Contact Point Consent |
|
| Contact Point Address |
|
| Contact Point Email |
|
| Contact Point Phone |
|
| Contact Point Type Consent |
|
| Communication Subscription Consent |
|
| Individual |
|
| Lead |
|
| Party Consent |
|
| Person Account |
|
| User |
|
- From Setup, in the Quick Find Box, enter Consent Event Stream, and then select Consent Event Stream.
- Select Use the consent event stream.
- Subscribe to the channel /event/ConsentEvent. For more information, see Subscribing to Platform Events
Example channel
/event/ConsentEvent
{
“data”: {
“schema”: “GzuA-iAALq0ABxW_WNjlag”,
“payload”: {
“TenantId”: null,
“NewValues”: “{\”ShouldForget\”:true}”,
“ConsentCaptureSource”:”com/salesforce/api/soap/47.0;client”,
“CreatedById”: “0054J000002fRxBQAU”,
“ChangeType”: 1,
“ConsentCaptureType”: null,
“ChangeInitiator”: “0054J000002HEa4QAG”,
“CreatedDate”: “2019-11-18T01:36:39.536z”,
“RecordId”: 0PK4J000000CabiWAC”,
“ChangeTimeStamp”: “2019-11-18T01:36:37:000z”,
“GlobalPartyId”: null,
“ObjectName”: “Individual” }
},
“event”: {
“replayId”: 287
},
“channel”: “/event/ConsentEvent”
}Did this article solve your issue?
Let us know so we can improve!

