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

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

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

Before You Begin

- Create a PushTopic. See [Creating a PushTopic](https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/pushtopic_events_intro.htm).

1. To configure a data source from the Flexcard configuration wizard, navigate to the **Select Data Source Type** step, select **Streaming API**, and click **Next**.
2. To configure a data source from the SetUp Panel in the Flexcard Designer, click **Setup**, and select **Streaming API** from the **Data Source Type** dropdown.
3. Select **PushTopic** from the **Type** dropdown.
4. In the **Channel** field, enter the URL of the PushTopic that you created.
5. From the **Operation** picklist, select **Replace** or **Append**.
    
    - Select **Replace** to overwrite the Card with new data.
    - Select **Append** to add new data to the Card.
6. From the **Get All Messages** picklist, select **True** or **False**.
    
    - Select **True** to get all data from the last 24 hours.
    - Select **False** to get the latest data update.
7. (Optional) To configure other options common among all data sources, see [Flexcards Data Source Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_data_source_properties.htm&release=264.0.0&type=5 "For the managed package runtime, Flexcard Data Source properties are configurable for each data source type in the Setup panel of the Flexcard Designer. Retrieve data from a Salesforce object or an external database.").
8. To test data source settings, add test variables that the query can use to return live data, see [Test Data Source Settings on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_test_data_source_settings_on_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, preview a Flexcard with real data by adding test values to runtime variables. The variables populate the dynamic fields in a data source, such as a contextId from an Omnistudio Data Mapper that gets data from an Account.").

What’s next: Add elements to the Flexcard. See [Add Elements to a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_elements_to_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, add data fields, states, actions, and other elements to your Flexcard. Style an element and configure its properties in the Flexcard Designer.").