Create a Channel Member to Associate a Custom Platform Event
To add a platform event to the channel that you created, add a channel member. Specify the channel in the
eventChannel field and the event in the
selectedEntity field. This example references a custom platform event,
|USER PERMISSIONS NEEDED|
|To create a PlatformEventChannelMember:||Customize Application|
|To use REST API:||API Enabled|
Send a POST request to this URI.
If you’re using Postman, under Tooling, click Post Tooling SObject, and then replace the
Use this example request body.
Send the request. The response received looks similar to this response.
A channel (PlatformEventChannel) can have multiple channel members (PlatformEventChannelMember), which means that you can add multiple platform events to a channel. This example adds only one platform event,
Carbon_Comparison__e. To add another event to the channel, create another PlatformEventChannelMember.
- Tooling API Developer Guide: PlatformEventChannelMember
- Metadata API Developer Guide: PlatformEventChannelMember