---
schema_version: "1"
id: af4e9674e7c15ed9107d03bdce925de77e07e2e639c561eed3645b9fccfdf3d3
title: PushTopic Data Source (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_pushtopic_data_source.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_pushtopic_data_source.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 314a8a0e50aa8306742dcdfbe34ba700b13df1296efebfe618bc815aa58a8375
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

Streaming API is known as Generic Streaming in Salesforce. See [Generic Streaming](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/generic_streaming_intro.htm#generic_streaming_intro).

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](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/pushtopic_events_intro.htm).

For another example, you could create an app that notifies a user any time a new task is created for that user.

![Create Task Push Topic](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/createtaskpushtopic.png)

## What's Next

Configure a PushTopic data source on your Flexcard. See [Configure a PushTopic Data Source on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configure_a_pushtopic_data_source_on_a_flexcard.htm&release=264.0.0&type=5 "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.").

- **[Configure a PushTopic Data Source on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configure_a_pushtopic_data_source_on_a_flexcard.htm&release=264.0.0&type=5)**  
    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.