Create/Publish Streaming Channel
Streaming channel is used to push the generic or custom message and subscribe those event/message for further processing, lets see how we create/publish streaming channel in Salesforce
- A StreamingChannel that defines the channel, with a name that is case-sensitive
- One or more clients subscribed to the channel
Prerequisites:
- Installing salesforce connector(by login into anypoint exchange from studio you can install the salesfoce conenctor)
- Salesforce developer account
- Security token
- Consumer key and secret(If you are using the Salesforce connector to access an OAuth API, you also need a consumer key and secret)
- Proper Salesforce Streaming API permissions enabled in your organization.
Steps to create the streaming channel:
Method-1
Login into Salesforce-> go to All Tabs-> Search for Streaming Channels
Select Streaming channel
Create the streaming channel, it should start with /u/channel_name
Channel created successfully
Method-2
There is an alternative way to create the streaming channel using Salesforce Connector
Create project in Anypoint studio
Drag and drop publish streaming channel from mule palette
Configure the channel name and description
Configure the connection as basic authentication
Deploy the project and trigger
Channel with name as SampleChannel created successfully in Salesforce
Sample application: streaming channel sample application