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.
- From Setup, in the Quick Find box, enter
Platform Events
, and then select Platform Events. - Click New Platform Event.
- In the Label field, enter a name for the platform event. For example, “Test Event”.
- In the Plural Label field, enter the plural form of the platform event label name. For example, enter
Test Events
. - Verify that the Event Type field is set to High Volume.
- Verify that the Publish Behavior field is set to Publish After Commit.
- Verify that the Deployment Status field is set to Deployed.
- Click Save.
- From Setup, in the Quick Find box, enter
Platform Events
, and then select Platform Events. - Click the name of the custom platform event you created in the previous task.
- 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.
- From Setup, in the Quick Find box, enter
Permission Sets
, and then select Permission Sets. - Click SCRT2 Integration User.
- Click Object Settings.
- Click the name of the custom platform event you just created.
- Click Edit, and select Read and Create.
- Save your changes.
- 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
- Salesforce Help: Define and Manage Platform Events
- Salesforce Help: Create Custom Fields
- Salesforce Help: Managed Profile Lists