Loading
Salesforce now sends email only from verified domains. Read More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Channel for a Custom Platform Event

          Create a Channel for a Custom Platform Event

          Create a channel that holds a stream of custom platform events.

          Required Editions

          User Permissions Needed
          To create a PlatformEventChannel: Customize Application
          1. Send a POST request to this URI.
            /services/data/v65.0/tooling/sobjects/PlatformEventChannel
          2. If you’re using Postman, expand Event Platform | Custom Channels | Platform Event, and click Create channel.
          3. To configure a channel that receives custom platform event messages, set channelType to event. The channel label appears in the event relays UI. Use this example request body. In Postman, click Body, and replace the body with this JSON body.
            {
              "FullName": "Carbon_Comparison_Channel__chn",
              "Metadata": {
                 "channelType": "event",
                 "label": "Carbon Comparison Channel"
              }
            }
          4. Send the request. The response received looks similar to this response.
            {
              "id": "0YLRM00000001es4AA",
              "success": true,
              "errors": [],
              "warnings": [],
              "infos": []
            }

          Now that you created a channel for platform events, add a channel member for one custom platform event. See Add a Custom Platform Event in a New Channel Member.

           
          Loading
          Salesforce Help | Article