Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [streaming-api]

The Force.com Streaming API lets you expose a near real-time stream of data from the Force.com platform. Streaming API delivers events that are either tied to changes in Salesforce or based on custom payloads.

4
votes
0answers
75 views

lightning:empApi is not working in summer19's sandbox: 403::Unknown client

I am receiving errors in lightning:empApi in the console. It was working fine before summer19 release in the sandbox. It works fine in scratch org. Scratch org is also on summer19. The error is ...
0
votes
0answers
14 views

EMP connector impl

I have some topics and users subscribed to this topics(user per topic). All examples contain only one user and topic and one instance of connector, so do i need to create a new connector instance ...
1
vote
1answer
18 views

Using CDC to detect changes in table definitions (DDL)

Can I use Capture Data Changes to get notifications on changes in the Salesforce table definitions, such as Add Column? Thanks in advance
0
votes
1answer
105 views

How to solve inconsistent 403::Unknown Client error on subscribe when using lightning:empApi

Every other time I attempt to use the lightning:empApi component to subscribe to a Push Topic channel the EMP API component reports error '403::Unknown Client' After the EMP API component reports the ...
0
votes
1answer
23 views

How to subscribe to different apps with different channels?

I am creating a system that integrate with the companys' salesforce data using the streamingpAPI and the subscriber model. What I understand is if an app input to my system the consumer key and the ...
0
votes
1answer
38 views

Why would I use Streaming API over Outbound Messages? [closed]

I have been looking into using the Streaming API for an upcoming integration project, and it seems like a modern way of providing near real-time data with durability. In the past I have let my ...
2
votes
1answer
26 views

Under what conditions isTransactionEnd in change events come as False?

I am doing the Subscribe to an Event Channel trail to learn about change events and confused about isTransactionEnd field that is returned in the header. Documentation Change Event Header Fields say ...
0
votes
0answers
26 views

Getting a list of clients listening to Streaming API - Debugging Recurring 403::Unkown client errors for PushTopics

We have a Ruby-on-Rails application which has a "listener" using Restforce(and a Faye 0.8.9 client) for 4 Push Topics from Salesforce. All our PushTopics are API version 41 A few days ago the ...
1
vote
2answers
76 views

How to use “jsforce” in an external HTML client for streaming api?

I am trying to use streaming API feature of salesforce, and be able to subscribe to the topic in an external client which is HTML based. My code is below: <html> <head> <...
0
votes
1answer
60 views

How to use the Streaming Monitor app?

I have downloaded the app, installed it, added myself to its permission set. Still, I cannot do anything in the tab. See the screenshot. The AppExchange page does not give any instructions, the Github ...
0
votes
0answers
25 views

how to send data from Kafka to Salesforce Streaming Api [duplicate]

i have done with the salesforce to Kafka already , i have some topics in KAFKA like Ptopic1 ,Ptopic2. so the thing here is i want live data of some latitude and longitude that comes from MQTT. i am ...
1
vote
0answers
48 views

Push topic and empApi filtered subscription not working after record page refresh (F5) [duplicate]

I need to use filtered subscription using lightning:empAPI for Push Topic notifications. But it does not work with Id filter after records page refresh (F5) whereas when it subscribes on the first ...
0
votes
1answer
44 views

Can we create platform event dynamically without using UI? [closed]

I want to create a platform event dynamically using any programming language. But I didn't find any API. Can you please tell me I can make platform event dynamically?
0
votes
0answers
115 views

Understanding who is consuming Platform Events, and how much, is it possible?

When a platform event is fired, it is consumed from whichever client is subscribed to its specific channel. If a single event is fired and consumed by 5 consumers, it will count 5 against the Daily ...
0
votes
1answer
81 views

Use Platform Event or Streaming API?

I am new to Salesforce Platform event and streaming API topics. After riffling through some documentation and getting enough confused, asking out for help here if anyone can suggest me the best ...
0
votes
1answer
156 views

Cannot subscribe to Capture Data Changes (CDC) channel using EMP Connector

I'm trying to implement CDC using the EMP Connector sample. I run it against the sandbox and try to subscribe to channels such as /data/ChangeEvents or /data/AccountChangeEvent. I always get this ...
4
votes
3answers
273 views

Can the cometd library be used in Salesforce to listen to external buses?

I'll confess up front that my knowledge of event architecture is limited: Can the cometd library that we can use to listen for Streaming API and Platform Events also be used to listen to external (i....
0
votes
0answers
102 views

Streaming API PushTopic VS Trigger and API Callout

I haven't used the Streaming API yet. I was just researching on it actually and I like the option for PushTopics. However it's not clear to me what's the advantage/difference using that versus a ...
0
votes
1answer
40 views

Streaming api sample code

I want sample code for streaming api which should not used any package. the code should not have js package or any. i want to understand how streaming api is working. could anyone help on that please
0
votes
0answers
20 views

Pushtopic for streaming api

I am currently trying to set up a stream api for email message. The problem I am currently having is that Pushtopics do not support email message(that I know of). Does anyone know of a work aound for ...
3
votes
0answers
63 views

Durable Message Replay from Change Data Capture

Given the following posts from Salesforce: Message Durability Replay Events Sample: Code Walkthrough StreamingReplayClientExtensions/java/CometDReplayExtension.java The way I'm understanding the ...
3
votes
2answers
581 views

Change Data Capture

With the new Change Data Capture tool coming out soon, why would someone use this over Platform Events? My understanding is that CDC utilizes Platform Events under the hood anyways.
0
votes
2answers
65 views

Notify or update salesforce records from external application

As Integration part is new to me so, tried little demo project which gets the external data and creates the record in custom object or so from a button click. Using HttpRequest method did all the API ...
0
votes
1answer
42 views

Streaming API to transfer FILES to online cloud storage

Using the SF documentation I have created a custom object with the FILES related list. Using workbench I can successfully see that it receives a message when a new record on that new object is ...
2
votes
0answers
30 views

Streaming API. How to resolve circular notification dependency

I have two different systems (salesforce (SF) and private one (PO)). They must be synchronized. To provide near real time synchronization on salesforce part we are using Streaming API (similar ...
4
votes
1answer
140 views

Salesforce Streaming API: configure Salesforce notification triggers for streaming

I'm trying to subscribe on notifications from salesforce using Streaming API. So I've done: I've created streaming channel I used java client I've generated events via REST API All this steps ...
2
votes
1answer
235 views

Publishing platform event using trigger?

I'm trying to stream changes to tables such as Accounts to a handler that will update our data warehouse. I tried pushtopics but ran into limitations in query size and longtext fields, so now I'm ...
1
vote
1answer
46 views

Salesforce Shield Decryption When Using API

Our application supports reading data from salesforce in a batch form and also as a real time sync. We have been using the salesforce SOAP api and the real time streaming api for the two use cases ...
3
votes
1answer
329 views

Subscribe to multiple channels using CometD

I'm trying to subscribe to multiple channels with CometD. I'm using the CometD static resource and syntax as per the Trailhead project: https://trailhead.salesforce.com/projects/workshop-platform-...
2
votes
1answer
955 views

Change Data Capture vs Platform Events vs Replication API vs Streaming API vs Batch Data Synchronization [closed]

I have a requirement to sync Salesforce data from 2 objects to Datawarehouse and insert/update data from Datawarehouse to Salesforce.We want this data sync to be realtime for this application.Data ...
0
votes
0answers
16 views

push notification for service cloud not working for lookup fields

I have configured 'Push notifications' for a servcice cloud console app I have configured them as below Choose How Detail Pages Refresh: - Automatically Refresh 1)The detail page automatically ...
1
vote
2answers
122 views

Pushtopic dynamic SOQL

Our front end web application (Salesforce treated as background in this case) makes a call to Salesforce when customer submit an application. The application process might take upto 2 minutes , so the ...
5
votes
1answer
151 views

Streaming API response on multiple windows

I have a VF page let's call it Aggregator. I display Project__c records on this page in a table, each row has a 'Refresh' icon on click of which a batch runs. The batch then does some calculation on ...
0
votes
1answer
173 views

Streaming API, does salesforce server disconnect client after some time?

For streaming API, does server force disconnect client after some time? If true, then how long the time is? Didn't find any documentation about this, but we found sometimes the client can't receive ...
1
vote
1answer
135 views

Initialise streaming client on button click, rather than init

I am using Mr Fawcett's the famous streaming component (https://github.com/afawcett/streamingcomponent) with his another great wrapper for deploying Custom Metadata Types (https://github.com/afawcett/...
0
votes
0answers
161 views

Push Topic streaming events not recieved when Account.LastActivtyDate changes

I'm using the salesforce "push topic" streaming api. I am successfully getting events when the account name and owner is changed; however I do not receive an event when an activity is logged and ...
1
vote
1answer
307 views

Platform Event for Guest Community User?

Can platform events be used for the unauthenticated guest user for communities? Looking to have a public-facing page that displays live statuses without requiring a log in. Streaming API appears to ...
11
votes
1answer
159 views

How to programmatically check if the Streaming API is enabled?

Is there a way to make an API call to Salesforce that would check if the Streaming API is enabled? I know how to check it in the UI - using this "Enable Streaming API" checkbox: But how to do it via ...
3
votes
0answers
88 views

Streaming API Notifications conflict vs polling

Using Streaming API in Lightning requires disabling In-App Notification and Mobile Push Notifications -- because both of these features use CometD (Streaming API) and you can only have one CometD ...
4
votes
1answer
351 views

Streaming Api >= 37.0 sending messages twice

Here's a side-by-side showing the issue that I'm currently facing. On the left, we have streaming api version 36.0, and on the right we have streaming api version 37.0 (all higher api versions had the ...
0
votes
1answer
70 views

Do I need to re initialize longpolling client with new access token on every connection session timeout?

Sample code how I'm initializing LongPollingTransport to create Bayeux client for subscribing pushtopic , LongPollingTransport transport = new LongPollingTransport(options, httpClient) {...
1
vote
1answer
394 views

Streaming API in Lightning Component getCallback error

I'm making a StreamingAPIListener Lightning component, built on this code from @Eric. (Thanks Eric.) The component loads up cometd from static resources, then runs doInit, which calls setupPushTopic, ...
2
votes
1answer
199 views

CometD / Streaming API: Firing an event inside of PushTopic's action throws a TypeError exception in Lightning Component

Let's consider a Lightning component with a single button and which uses a CometD / Streaming API to handle some server actions. A button click calls a server-side controller's action which inserts a ...
0
votes
1answer
87 views

streaming api disconnecting

Can anyone point me out why i am getting this error. Much help is appreciated. IN >>>> {"advice":{"interval":0,"reconnect":"handshake"},"channel":"/meta/connect","id":"71","error":"403::...
2
votes
1answer
103 views

Even Driven Enterprise External Integration with Salesforce and External Applications

I am asking about Salesforce Event Driven notifications and similar notification frameworks. We are trying to integrate our CRM (Salesforce) with our ERP (External Applications located on Private ...
2
votes
0answers
123 views

Is there any way to see who is connected to the Streaming API?

In reviewing the Limits API, I see that we have 2000 Durable Streaming clients available via the DurableStreamingApiConcurrentClients field. I show that there are currently (and almost always) > 700 ...
2
votes
0answers
101 views

Salesforce Java Streaming Client filtered subscription

I am subscribing to a push topic from a Salesforce Streaming java client that uses the cometd and bayeux libraries. I found this page which says that filtered subscriptions are supported in streaming ...
1
vote
1answer
31 views

Quick export of newly added custom objects to external app/database

Our account managers create items in SF(sObjects, if that matters), which soon afterwards need to be used in our web app(Ruby on Rails with PostgreSQL). The data sync should happen as soon as ...
2
votes
1answer
203 views

Lightning Data Services vs. Streaming API

I have a lightning component which needs to be refreshed when a record is changed in the database. Can I use lightning Data Services or must I use the Streaming API?
4
votes
1answer
963 views

KAFKA to Salesforce

I am working on one task and that is to send data from KAFKA to Salesforce streaming api (for particular push topic). Anyone have any idea how to do that? Any link or any code snippet would be great.