(Optional) Define a Platform Event

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.

USER PERMISSIONS NEEDED
To define a platform event:Customize Application
  1. From Setup, in the Quick Find box, enter Platform Events, and then select Platform Events.
  2. Click New Platform Event.
  3. Provide these values.
  • Label: Carbon Comparison
  • Plural Label: Carbon Comparisons
  • Save your changes.
  1. Create these fields. In Custom Fields & Relationships, click New for each field, and follow the wizard.
  • Field type: Number, Field Label: Annual Mileage, Length: 6, Decimal Places: 0
  • Field type: Text, Field Label: Current Vehicle, Length: 100
  • Field type: Text, Field Label: Model Year, Length: 4