---
schema_version: "1"
id: 0bd28696d0d47b07bcbffb3eca872f8f95aaef29a29bd9c144bec4375a2e82e1
title: "Step 1: Define a Platform Event"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/event-bus/pub-sub-api/guides/qs-java-prereqs.md
canonical_url: https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-prereqs.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3a78699eedda31d5b28d3e026b21e3d548ab87b0ee79250097ba455f0178c600
products:
  - Pub/Sub API
  - Event Bus Docs
---
# Step 1: Define a Platform Event

Create a custom platform event named `Order Event`. The steps in this quick start use this platform event.

1. From Setup, in the Quick Find box, enter `Platform Events`, and then select **Platform Events**.
2. On the Platform Events page, click **New Platform Event**.
3. Complete the standard fields, and for the description, enter `Example event for the Pub/Sub API client`.
4. Save your work.
5. To add a field, in the Custom Fields & Relationships related list, click **New**.
6. Follow the custom field wizard to set up these fields.
   - Field label: `Order Number` (API name: `Order_Number__c`), field type: Text(18)
   - Field label: `City` (API name: `City__c`), field type: Text(50)
   - Field label: `Amount` (API name: `Amount__c`), field type: Number(16,2)
