Newer Version Available

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

Step 3: Subscribe to the PushTopic Channel

In this step, you’ll subscribe to the channel you created with the PushTopic record in the previous step.

Workbench is a free, open source, community-supported tool (see the Help page in Workbench). Salesforce provides a hosted instance of Workbench for demonstration purposes only—Salesforce recommends that you do not use this hosted instance of Workbench to access data in a production database. If you want to use Workbench for your production database, you can download, host, and configure it using your own resources.

You can download Workbench from http://code.google.com/p/forceworkbench/downloads/list.

Important

  1. In your browser, navigate to https://developer.salesforce.com/page/Workbench.
  2. For Environment, select Production.
  3. For API Version, select 32.0.
  4. Accept the terms of service and click Login with Salesforce.
  5. Once you successfully establish a connection to your database, you land on the Select page.
  6. Click queries | Streaming Push Topics.
  7. In the Push Topic field, select InvoiceStatementUpdates.
  8. Click Subscribe.

    You’ll see the connection and response information and a response like "Subscribed to /topic/InvoiceStatementUpdates."

Keep this browser window open and make sure the connection doesn’t time out. You’ll be able to see the event notifications triggered by the InvoiceStatement record you create in the next step.