> For the complete documentation index, see [llms.txt](https://docs.kyuda.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kyuda.io/flow/nodes/salesforce-1/salesforce.md).

# PushTopic Events

Streaming API enables streaming of events using push technology and provides a subscription mechanism for receiving events in near real time. The Streaming API subscription mechanism supports multiple types of events, including PushTopic events, generic events, platform events, and Change Data Capture events.

## PushTopic Events

PushTopic events provide a secure and scalable way to receive notifications for changes to Salesforce data that match a SOQL query you define.

Use PushTopic events to:

* Receive notifications of Salesforce record changes, including create, update, delete, and undelete operations.
* Capture changes for the fields and records that match a SOQL query.
* Receive change notifications for only the records a user has access to based on sharing rules.
* Limit the stream of events to only those events that match a subscription filter.

## Creating a Push Topic

Go to <https://workbench.developerforce.com/>.\
Select either **Production** or **Sandbox** depending on which environment your Salesforce organisation is in.\
Click **Login with Salesforce**. Make sure that you log in with the same Salesforce account for the Salesforce organisation that you are setting up with the integration.

![workbench-1](https://www.alpine-code.com/blog/content/images/2020/08/workbench-1.png)

Go to **data > Insert**.\
For **Object Type**, select **PushTopic**.\
Select **Single Record**.\
Click Next.

For the **PushTopic** field values enter:

![workbench-2](https://www.alpine-code.com/blog/content/images/2020/08/workbench-2.png)

Click **Confirm Insert**.

## Streaming a Push Topic

In Workbench, go to **queries > Streaming Push Topics**.\
From the **Push Topic** menu, select the name of the Push Topic that you created.\
Click **Subscribe.**

![workbench-3](https://www.alpine-code.com/blog/content/images/2020/08/workbench-3.png)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kyuda.io/flow/nodes/salesforce-1/salesforce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
