Newer Version Available

This content describes an older version of this product. View Latest

Select Objects for Change Notifications with Metadata API and Tooling API

Use PlatformEventChannelMember in Metadata API or Tooling API to create or retrieve object event selections for the default standard channel or a custom channel. The default standard channel, ChangeEvents, corresponds to the selections that you configure in Setup in the Change Data Capture page. For a custom channel, the object selections are set when you create the channel member. The SelectedEntity field in PlatformEventChannelMember represents a selection made through the user interface or the API.

To learn how to select objects with Metadata API, see PlatformEventChannelMember in the Metadata API Developer Guide.

To learn how to select objects with Tooling API, see PlatformEventChannelMember in the Tooling API Developer Guide.

To learn about custom channels, see Compose Streams of Change Data Capture Notifications with Custom Channels, PlatformEventChannel in the Metadata API Developer Guide, and PlatformEventChannel in the Tooling API Developer Guide.

Starting with API version 47.0, you define channel member components and channels separately in Metadata API. In API version 45.0 and 46.0, members are included in the PlatformEventChannel component.