Newer Version Available

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

Step 5: Test the PushTopic Channel

  1. Load the Visualforce page that you created in a Web browser by using the following URL:
    https://myinstance.salesforce.com/apex/StreamingAPIDemo where myinstance is the name of your Salesforce instance, such as na1.
  2. In the text box, enter the channel name: /topic/InvoiceStatementUpdates.
  3. Click Subscribe to subscribe to the channel.
  4. Create or modify an InvoiceStatement in a different browser. You should see the event notification appear on the Visualforce page. The output should resemble the following:

    The first event notification shows the notification data when an invoice statement is created. The second notification shows the notification data when an invoice statement is updated.

Click Unsubscribe to unsubscribe from the channel and stop receiving notifications.