---
schema_version: "1"
id: 1dc320ee2fe8ef65ab525a725115b3988dcefc0f5530f01e133891b2e2b92248
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_1.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_pushtopic_data_source_1.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8986a1468b5276f54aec71cc95b45a39bd5fe75e2a83ccacade285623e9e335c
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. Streaming API is known as Generic Streaming in Salesforce.
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. Streaming API is known as Generic Streaming in Salesforce.

![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).

For details, see [Generic Streaming](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/generic_streaming_intro.htm#generic_streaming_intro) in the Salesforce Streaming API Developer's Guide.

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.

For details, see [Creating a PushTopic](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/pushtopic_events_intro.htm) in the Salesforce Help.

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)

- **[Configuring a PushTopic Data Source (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configuring_a_pushtopic_data_source.htm&release=264.0.0&type=5)**  
    For the managed package runtime, configure a PushTopic data source to run an SOQL query that returns a result that notifies listeners of changes to records in a Salesforce organization.