Newer Version Available

This content describes an older version of this product. View Latest

Prerequisites

You need access and appropriate permissions to complete the code example.
  • Java Development Kit 8 (see Java Downloads)
  • Eclipse IDE for Java Developers (get a recent version from http://www.eclipse.org/downloads/eclipse-packages/)
  • To run the tool from the command line: Apache Maven (see https://maven.apache.org/index.html)
  • Access to a Developer Edition org

    If you are not already a member of the Lightning Platform developer community, go to developer.salesforce.com/signup and follow the instructions for signing up for a Developer Edition organization. Even if you already have Enterprise Edition, Unlimited Edition, or Performance Edition, use Developer Edition for developing, staging, and testing your solutions against sample data to protect your organization’s live data. This is especially true for applications that insert, update, or delete data (as opposed to simply reading data).

  • The API Enabled permission must be enabled for your Developer Edition org. This permission is enabled by default, but might have been changed by an administrator.
  • The Streaming API permission must be enabled.

    To verify that the API Enabled and Streaming API permissions are enabled, from Setup, enter User Interface in the Quick Find box, then select User Interface.

    Note

  • The logged-in user must have Read permission on the PushTopic standard object to receive notifications.
  • The logged-in user must have Create permission on the PushTopic standard object to create and manage PushTopic records.
  • The logged-in user must have Author Apex permission to create a PushTopic from the Developer Console.