Create and Configure the Custom Platform Event

Create a custom platform event to send and receive messages between Salesforce and the Bring Your Own Channel system. Define fields to customize the platform event data, and assign permissions to the platform event.

  1. From Setup, in the Quick Find box, enter Platform Events, and then select Platform Events.
  2. Click New Platform Event.
  3. In the Label field, enter a name for the platform event. For example, “Test Event”.
  4. In the Plural Label field, enter the plural form of the platform event label name. For example, enter Test Events.
  5. Verify that the Event Type field is set to High Volume.
  6. Verify that the Publish Behavior field is set to Publish After Commit.
  7. Verify that the Deployment Status field is set to Deployed.
  8. Click Save.
  1. From Setup, in the Quick Find box, enter Platform Events, and then select Platform Events.
  2. Click the name of the custom platform event you created in the previous task.
  3. In the Custom Field & Relationships section, click New and create two fields with these data types and field labels.
    • Data Type: Text and Field Label: EventType. In the Length field, set the number of characters to a value between 36 and 255.
    • Data Type: Text Area (Long) and Field Label: Payload.
  1. From Setup, in the Quick Find box, enter Permission Sets, and then select Permission Sets.
  2. Click SCRT2 Integration User.
  3. Click Object Settings.
  4. Click the name of the custom platform event you just created.
  5. Click Edit, and select Read and Create.
  6. Save your changes.
  7. Make sure that users, including those with the Standard User profile, are granted these permissions to the platform event you created.
    • All users are granted read permissions.
    • All admin users are granted read and create permissions.

See Also