Newer Version Available
Step 1: Deploy a Sample Project to Your Org
-
Download the Salesforce Durable Generic Demo
.zip file from the developerforce github
repository.
If you want, you can browse the contents of the project at https://github.com/developerforce/SalesforceDurableGenericDemo. The following components are installed in your org when you deploy the .zip file.
Component Description StreamingGenericMessageDisplay A Visualforce component that uses the CometD extension cometdReplayExtension to replay events. The extension handles the handshake and subscribe calls and sets replay options. Having the replay functionality in a Visualforce component allows you to add it to your Visualforce page for reuse in your app.
StreamingGenericReplayController Apex controller that holds the logic behind the Visualforce page. StreamingChannel Custom object used for creating streaming channels. StreamingDurableGenericDemo Visualforce Page Visualforce page. This page is the main page you use to replay test events. StreamingDurableGenericDemo Permission Set Permission set used to grant read and create access to the StreamingChannel sObject. cometdReplayExtension Static resource representing a CometD extension in JavaScript. This extension implements the replay mechanism for Streaming API. cometd, jquery, jquery_cometd, json2 Static resources for CometD, jquery, and JSON. You use Workbench to migrate the zip file to your org.
-
Log in to Workbench at https://workbench.developerforce.com/login.php.
- For Environment, keep the production default value.
- Ensure that the value for API Version is at least 36.0.
- Check the terms of service box, and then click Login with Salesforce.
- Enter your Developer Edition org username and password, and then click Log In.
- Select .
- Click Choose File and locate the .zip file that you downloaded.
- Click Next, and then click Deploy.
- Wait until the deployment finishes and the status of the deployment changes to Succeeded.
- Log in to your org in another browser tab.