---
schema_version: "1"
id: 8f56fadfc7fec82664776af59037cc9584d4eb6b8c38a984b9778e3e210a82e2
title: Add a Custom Platform Event in a New Channel Member
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ev_relay_create_channel_member_pe.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_channel_member_pe.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1f109ef91dce89b8af6e574eab5d85a3e62697b44dba1b6ff5f9621288a2f90d
description: To add a platform event to the channel that you created, create a channel member.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Add a Custom Platform Event in a New Channel Member

To add a platform event to the channel that you created, create a channel member.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d136630e38">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d136630e38 ">To create a PlatformEventChannel:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d136630e38 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

Prerequisites:

- [Create a Channel for a Custom Platform Event](https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_channel_pe.htm&release=264.0.0&type=5 "Create a channel that holds a stream of custom platform events.")
- Define the Carbon\_Comparison\_\_e platform event in [(Optional) Define a Platform Event](https://help.salesforce.com/s/articleView?id=platform.ev_relay_define_pe.htm&release=264.0.0&type=5 "If you have a custom platform event defined in your Salesforce org that you want to use for the event relay, you can skip this step. You can also skip this step if you want to use the event relay with a change data capture event. Otherwise, follow the steps in this section to define an example platform event, Carbon_Comparison__e, which the event relay configuration steps use.") for this channel member.

1. Send a POST request to this URI.
    
    ```
    /services/data/v65.0/tooling/sobjects/PlatformEventChannelMember
    ```
2. If you’re using Postman, expand **Event Platform** | **Custom Channels** | **Platform Event**, and click **Create channel member**.
3. Specify the channel in the `eventChannel` field and the event in the `selectedEntity` field. This example references a custom platform event, `Carbon_Comparison__e`. Use this example request body. In Postman, click **Body**, and replace the body with this JSON body.
    
    ```
    {
      "FullName": "Carbon_Comparison_Channel_chn_Carbon_Comparison_e",
      "Metadata": {
         "eventChannel": "Carbon_Comparison_Channel__chn",
         "selectedEntity": "Carbon_Comparison__e"
      }
    }
    ```
4. Send the request. The response received looks similar to this response.
    
    ```
    {
      "id": "0v8RM0000000G3iYAE",
      "success": true,
      "errors": [],
      "warnings": [],
      "infos": []
    }
    ```

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.

#### See Also

- [_Tooling API Developer Guide_: PlatformEventChannelMember](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_platformeventchannelmember.htm)
- [_Metadata API Developer Guide_: PlatformEventChannelMember](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_platformeventchannelmember.htm)