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

  • 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

Create Streaming Channel

 

Select Streaming channel

Create 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

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments