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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
179 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
0 answers
45 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
1 answer
495 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 ...
3 votes
1 answer
2k 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 ...
2 votes
1 answer
460 views

Minimise delay between Streaming API and Heroku Connect

I currently have an app (node.js) running in Heroku, using Heroku Connect to connect to Salesforce to read/write data. Heroku Connect essentially has a copy of selected data from Salesforce, which is ...
3 votes
1 answer
2k 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-...
1 vote
1 answer
636 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 ...
7 votes
1 answer
6k 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 ...
3 votes
0 answers
601 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
1 answer
375 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 ...
0 votes
1 answer
343 views

Salesforce Streaming API

I am trying to replicate one example given below in streaming api. I have used all the required component, still the page is not refreshing automatically. I am using example from below link - http:/...
1 vote
2 answers
892 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
1 answer
255 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 ...
11 votes
1 answer
932 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 ...
1 vote
1 answer
151 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/...
5 votes
1 answer
2k 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 ...
3 votes
0 answers
243 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
1 answer
4k views

Streaming API in Lightning Component API 40

I see several blog post around Lightning and Streaming API integration but it seems not working due to authorization failure and don't complain any error for API version greater than 36, I tried to ...
2 votes
1 answer
2k views

How to use latest cometd version in Salesforce StreamingAPI

Following the instructions here I was able to set up StreamingAPI in my org with cometd version 2.2.0. Salesforce are now advising that we upgrade to at least 3.0.9 so I've downloaded the latest ...
1 vote
0 answers
1k views

Behavior of List Views in Lightning - Auto Refresh feature on updation of records

We are looking for any approaches to make the list views refresh automatically to show new records that got created on backed and fall under the list view category. Seems to be out of box salesforce ...
0 votes
2 answers
347 views

Streaming Api performance

I am writing an application where any change in the salesforce sobject will be directly synced in my db.I used streaming API concept.I wanted to know whether this streaming api is reliable and wont ...
2 votes
2 answers
918 views

Streaming API in Salesforce

I would like to know what is the Streaming API? How can the Streaming API be used in Salesforce applications?
6 votes
1 answer
722 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
1 answer
467 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) {...
2 votes
1 answer
441 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 ...
5 votes
2 answers
4k views

"403::Unknown client" Error When Connecting to Streaming API Push Topic

I am trying to connect to a Push Topic via the Salesforce Streaming API using Python. My application completes the initial handshake correctly, but then fails on the following connect call, with the ...
1 vote
1 answer
653 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, ...
0 votes
1 answer
182 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
0 answers
164 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
1 answer
73 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
1 answer
260 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?
5 votes
1 answer
2k views

Update custom Lightning Component on Master when Detail "Related List" Component edited

I have a custom Lightning Component on an Opportunity Record FlexiPage, that shows a Master-Detail relationship Rollup Calculation (e.g. the count of detail records). After adding an item via the "...
1 vote
1 answer
454 views

Durable Streaming Limit reached in Error

3 times in the past 3 months our data collectors in StreamSets have received a message that "Organization total events daily limit exceeded". Which would indicate that we have used 1M events in 24 ...
10 votes
2 answers
2k views

Is Streaming API supported in Lightning components?

I'm trying to convert a Visualforce/Angular app into a Lightning app, which has translated well so far. The last hurdle is to utilize the Streaming API to track updates. I haven't found any samples ...
1 vote
0 answers
323 views

How to retrieve Object name from Push topic API streaming

I created a pushTopic for an object pushTopic.Name = 'InvoiceStatementUpdates'; pushTopic.Query = 'SELECT Id, Name, Status__c, Description__c FROM Invoice_Statement__c'; From Salesforce Java ...
2 votes
0 answers
166 views

Alternative for event machines to process pushTopics?

We have a Ruby app which has a continuously running Rake task which listens for Salesforce pushTopics using the gem Restforce (and Faye). The Restforce gem is compatible with an older version of Faye (...
1 vote
1 answer
714 views

Sales force EMP connector, stops receiving notification after some time

I am performing a POC to check Streaming API stability, POC is as follows Program 1 : subscribe to pushtopic created against Account object Program 2 : create, update & delete single record after ...
0 votes
2 answers
402 views

Can I know the pros,cons and Limitations of Durable streaming feature of salesforce? [closed]

I wanted to Know what are Pros, cons, and limitations of Durable streaming API 37.0 in sfdc.
0 votes
1 answer
115 views

Authentication from Salesforce Streaming API

I have a authentication problem.I have planned to use COmetD libray to subscribe any Sobject Changes to hit my java application.Is there any mechanism to authenticate a Call that comes from salesforce....
0 votes
1 answer
2k views

Subscribe Salesforce without using EMP Connector

I am writing a java application where a change in Salesforce Account should hit my java application through Streaming API.I gone through various articles and I found it can be achieved through Emp ...
0 votes
1 answer
232 views

Need some more information on Salesforce Streaming API

While exploring Streaming API, found the API documentation and have gone through that. To integrate this the documentation mentions that Bayeux client is needed, for which CometD API is suggested. I ...
0 votes
1 answer
532 views

Streaming API Subscribing

I'm trying to create a Streaming API but I am having issues testing it, It isn't working through my code and it won't allow to me select 'Subscribe' on the work bench, I have checked all the API ...
2 votes
1 answer
91 views

Streaming API encryption?

Concerning Streaming API in Salesforce : are the messages send, via streaming API , encrypted in any way? On the ComedD website, they mention the measures to take concerning Security : https://docs....
0 votes
1 answer
3k views

Does the Streaming API required to be enabled for a Salesforce Organization before being subscribed to?

If one would build a Salesforce integration with OAuth using the REST API and the Streaming API. Is there any special configuration do the users who would install this integration need to have in ...
4 votes
1 answer
214 views

Can we create Push topics on external objects?

I have set up a Push Topic on an external object to look for the 'Create' Activity. However, when I create an External object record, the Workbench Push Topic Window doesn't receive a Message. Is ...
10 votes
1 answer
2k views

Named Credentials in Lightning Component - Streaming API

Setup: Force.com site page Guest Users VF with Lightning Out Lightning component to subscribe to Push Topic Problem Guest User does not have a session ID so no way to set it here: $.cometd.init({ ...
4 votes
1 answer
1k views

Best API option for returning records with only specific changes?

Looking for advice on the best API option to return a list of Ids in a particular object when only specific changes are made to the records. From what I gather, the REST option of GetUpdated doesn't ...
8 votes
1 answer
2k views

Streaming API Timeout Clarification

The documentation is not clear on how long a subscription is good for. I have found references (forums posts) that say 2 hours but unable to find a documented source within SF docs. However, this part ...
0 votes
1 answer
287 views

Streaming API subscription endpoint

While I can dynamically create push topics through the API, I'm having trouble figuring out how to subscribe to them. Is there an endpoint that lets me pass in auth credentials and a callback URL, or ...
0 votes
0 answers
403 views

Ionic 2 salesforce connecting but streaming api subscription not working

here is the full code: import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import * as jsforce from "jsforce"; @Component({ selector: 'page-home', ...