You are here:
PushTopic Data Source (Managed Package)
For the managed package runtime, the Streaming Channel API type uses the Streaming API to send notifications of general events that are not tied to Salesforce data changes. Use the Streaming Channel API when you want to send and receive notifications based on custom events that you specify. You can use Streaming Channel API for any application that sends custom notifications, such as a Chat application.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Streaming API is known as Generic Streaming in Salesforce. See Generic Streaming.
A PushTopic is a SOQL query that returns a result that notifies listeners of changes to records in a Salesforce organization. The PushTopic defines a Streaming API channel. For instance, if you want to get notified when a case is created for a particular type or status or both, use a PushTopic.
The following example code creates a PushTopic that pushes data if a case of type
Problem is created:
Select Id,CaseNumber,Subject,ContactEmail from Case where Type = 'Problem'If you also need Status, you can simply add another
condition:
Select Id,CaseNumber,Subject,ContactEmail from Case where Type = 'Problem' AND Status = ‘New’You cannot use GROUP BY or ORDER BY clauses in a PushTopic. See Creating a PushTopic.
For another example, you could create an app that notifies a user any time a new task is created for that user.
What's Next
Configure a PushTopic data source on your Flexcard. See Configure a PushTopic Data Source on a Flexcard (Managed Package).
- Configure a PushTopic Data Source on a Flexcard (Managed Package)
For the managed package runtime, configure a PushTopic data source to run a SOQL query that returns a result that notifies listeners of changes to records in a Salesforce organization. The PushTopic defines a Streaming API channel. For example, get notified when a case is created for a particular type or status or both.

