# Create and Configure the Custom Platform Event

Create a custom platform event to send and receive messages between Salesforce and the partner messaging system. Define fields to customize the platform event data, and assign permissions to the platform event.

## Task 1: Create the Custom 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**.

## Task 2: Add Custom Fields to the Platform Event

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**.

## Task 3: Assign Permissions to the Platform Event

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.

**See Also**

- *Salesforce Help*: [Define and Manage Platform Events](https://help.salesforce.com/s/articleView?id=platform.platform_events.htm)
- *Salesforce Help*: [Create Custom Fields](https://help.salesforce.com/s/articleView?id=platform.adding_fields.htm)
- *Salesforce Help*: [Managed Profile Lists](https://help.salesforce.com/s/articleView?id=platform.users_custom_profile_lists.htm)

## See Also

- [Bring Your Own Channel for CCaaS Outbound Event Reference](/docs/service/messaging-byoc-ccaas/references/byoc-ccaas-outbound-event-reference/outbound-event-reference.md)
