Newer Version Available
PlatformEventChannel
Represents a Change Data Capture custom
channel that you can subscribe to for receiving notifications of Salesforce record
changes. Change Data Capture sends notifications for created, updated, deleted, and
undeleted records only for the selected entities.
This object is available in API version 47.0 and later.
Supported SOAP Calls
create(), delete(), query(), retrieve(), update()
Supported REST HTTP Methods
GET, POST, PATCH, DELETE
Special Access Rules
You must have the Customize Application permission to access this object.
Fields
| Field Name | Description |
|---|---|
| ChannelType |
|
| DeveloperName |
|
| FullName |
|
| Language |
|
| ManageableState | |
| MasterLabel |
|
| Metadata |
|
| NamespacePrefix |
|
Usage
This JSON example is the body of a REST API POST request that creates a custom channel. The corresponding REST endpoint is /services/data/47.0/tooling/sobjects/PlatformEventChannel.
1{
2 "FullName": "MyCustomChannel__chn",
3 "Metadata": {
4 "channelType": "data",
5 "label": "My Custom Channel"
6 }
7}You can query custom channels in SOQL over Tooling API but not the standard channel (ChangeEvents). For example, this query returns fields of channel members from all custom channels.
1SELECT Id, DeveloperName, ChannelType, MasterLabel FROM PlatformEventChannel