Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
PlatformEventChannelMember
This object is available in API version 47.0 and later.
Supported SOAP Calls
Supported REST HTTP Methods
DELETE, GET, HEAD, PATCH, POST, Query
Special Access Rules
- To retrieve or query this object, you must have the View Setup and Configuration permission.
- To create, update, or delete this object, you must have the Customize Application permission.
- The EventChannel and SelectedEntity fields can’t be updated.
Fields
| Field Name | Description |
|---|---|
| DeveloperName |
|
| EventChannel |
|
| FilterExpression |
|
| FullName |
|
| Language |
|
| ManageableState | |
| Metadata |
|
| NamespacePrefix |
|
| SelectedEntity |
|
Usage
This JSON example is the body of a REST API POST request. It adds a member to a custom channel named SalesEvents__chn. The corresponding REST endpoint is /services/data/v68.0/tooling/sobjects/PlatformEventChannelMember.
1{
2 "FullName": "SalesEvents_chn_AccountChangeEvent",
3 "Metadata": {
4 "eventChannel": "SalesEvents__chn",
5 "selectedEntity": "AccountChangeEvent"
6 }
7}To add a member to the ChangeEvents default channel, the request body looks as follows.
1{
2 "FullName": "ChangeEvents_AccountChangeEvent",
3 "Metadata": {
4 "eventChannel": "ChangeEvents",
5 "selectedEntity": "AccountChangeEvent"
6 }
7}You can query PlatformEventChannelMember in SOQL over Tooling API. For example, this query returns fields of all channel members on all channels.
1SELECT Id,DeveloperName,EventChannel,SelectedEntity FROM PlatformEventChannelMemberYou can configure a channel member to include extra fields in change events as part of Change Data Capture Enrichment. For more information, see Example: Add Event Enrichment Fields with Tooling API in the Change Data Capture Developer Guide.