Newer Version Available
Publish and Receive Platform Events
Use EMP Connector to subscribe to a custom platform event that you defined
earlier.
To create the Low_Ink__e platform event, follow the steps in Define a Custom Platform Event.
-
Publish event messages in the Developer Console using Apex. In this example, you
publish the Low_Ink__e event messages.
- In Salesforce Classic, select .
- In Lightning Experience, click the quick access menu, and select Developer Console.
- Select .
-
In the new window and replace the contents with this Apex code snippet.
- Click Execute. After the platform event is published, EMP Connector receives an event notification, which is printed in the console. The output is similar to this example.