Skip to main content

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
20 votes
3 answers
22k views

What is the difference between the Streaming API PushTopic, Generic Streaming and Platform Events

Salesforce offers two variants of the Streaming API - PushTopic and Generic. In Summer '17 (v40.0) Platform Events are now also Generally Available (GA). How do they differ and why would you use one ...
Daniel Ballinger's user avatar
14 votes
1 answer
988 views

Streaming API MVEL Operators

Do the MVEL operators for filtered subscriptions described in Streaming API documentation really work? I've tried a few variations of this (i.e. with/without quotes, double/single == etc.): j$....
Phil Hawthorn's user avatar
13 votes
2 answers
4k views

How Streaming API Event Usage is calculated?

Was going through the streaming Streaming API governor limit it is 10K events. How this is calculated? Is this is the number of events that the platform generates? Well to verify this created a vf ...
Avidev9's user avatar
  • 5,699
12 votes
2 answers
8k views

Real time updates - Streaming API vs workflow Outbound messages

My organization has a requirement that if anything is updated/inserted in our web application (cloud based application built in ASP.net and c#) that it should be automatically be updated in SFDC and ...
mani's user avatar
  • 187
11 votes
6 answers
12k views

Find current API version in Apex

I'd like to get the current API version in Apex. Is this possible without issuing a call to e.g. REST api? I post messages to a streaming channel via:- string uri = URL.getSalesforceBaseUrl()....
Richard Durrant's user avatar
11 votes
2 answers
280 views

How can I use jQuery 1.11+ while also using Streaming API?

Original Question: What's the lastest version of CometD that can be used with Streaming API? In Salesforce Streaming API documentation, it says Salesforce uses CometD version 2.0. But in their code ...
Scott Pelak's user avatar
  • 7,584
11 votes
1 answer
1k 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 ...
Sergey's user avatar
  • 551
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 ...
Brian Dunzweiler's user avatar
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({ ...
Eric's user avatar
  • 54.4k
9 votes
3 answers
8k views

The better way to import cometD library into LWC

I've been trying to use empAPI on community but unfortunately it's impossible. So I found this staff from trailhead https://github.com/forcedotcom/EMP-Connector.git Could anyone please describe me ...
pincet's user avatar
  • 941
9 votes
3 answers
7k views

How can I delete Streaming API Push Topics in salesforce?

I have created a push topic in salesforce now i want to delete/deactivate this pushtopic. For doing so i require push topic id. I am not able to figure out how can i get ID for a given pushtopic can ...
user2256531's user avatar
9 votes
2 answers
4k views

Will Change Data Capture eventually replace PushTopics/Streaming API?

I need to notify an external system component about changes in Salesforce data. I am confused by the fact that there exist two seemingly competing solutions in Salesforce for that. Both look very ...
Robert Sösemann's user avatar
8 votes
4 answers
2k views

Salesforce Integration + Streaming API

The Salesforce Integration Patterns workbook suggests the use of the Streaming API to give an customer service agent a real time notification of a client payment. However the Streaming API is limited ...
Steven Herod's user avatar
  • 3,543
8 votes
2 answers
2k views

empApi with Lightning Web Components?

I have an LWC in which I want to use EMP API. Docs say that's only currently available in Aura. Do I have to wrap my entire LWC in aura in order to add the EMP API, or can I create a utility aura ...
PatMcClellan__c's user avatar
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 ...
Eric's user avatar
  • 54.4k
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 ...
sfdc's user avatar
  • 13.8k
7 votes
1 answer
3k views

Can a Customer Community user access PushTopics for Streaming API?

I have a PushTopic created, and have a VF page with some js in it that subscribes to the topic and logs any results to the console. I've verified that I'm getting results if I'm logged in as a ...
Tim Smith's user avatar
  • 2,119
7 votes
1 answer
797 views

Topic limit exceeded when updating PushTopic

I can create and update PushTopics without issue until the limit is reached. Once the limit is reached, I can't update existing topics, the following error is thrown: Update failed. First exception ...
Brian Walsh's user avatar
6 votes
2 answers
692 views

Streaming API & managed package

There is Pushtopic usage within managed package which doesn't work because of the following error (This error was identified from https://workbench.developerforce.com -> Queries -> Streaming Push ...
Natallia's user avatar
  • 3,241
6 votes
2 answers
1k views

PushTopic Test: Duplicate Name Bug?

I am writing a test class for a utility class for inserting PushTopics. Despite explicitly setting @isTest(SeeAllData=false) on my test class, I am getting a System.DMLException because of a ...
Kevin O'Hara's user avatar
  • 4,059
6 votes
1 answer
734 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 ...
martin's user avatar
  • 12.7k
6 votes
2 answers
3k views

Create Streaming PushTopic using REST API?

Salesforce Streaming API documentation gives the examples of creating PushTopics through the developer console by running some APEX code. Is there a way to create PushTopics programmatically using ...
auny's user avatar
  • 773
6 votes
2 answers
1k views

Accomplishing 'Long Polling' to monitor events - REST or STREAMING API?

My use case is to be notified of any new documents uploaded to the account - { I could potentially use the StreamingApi but my entire infrastructure is based on REST, while the StreamingApi uses ...
Noob_ForceDev's user avatar
6 votes
2 answers
2k views

Streaming API : not getting updates for some standard fields

I have created a PushTopic from my salesforce developer account using following query : SELECT Id, FirstName, LastName, Name, Email, Contact_Status__c, Contact_Verification__c, Gender__c, ...
r.bhardwaj's user avatar
6 votes
0 answers
359 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 ...
Vishnu Kumar's user avatar
5 votes
2 answers
7k 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.
user5428's user avatar
  • 1,015
5 votes
3 answers
3k 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....
AlwaysThinkin's user avatar
5 votes
3 answers
5k views

Lightning components, CometD - Refused to connect to ... because it violates the following Content Security Policy directive

I am trying to build a Lightning component by an example from Salesforce Developers Youtube channel, here is original video: https://youtu.be/G931jWBnxHU?t=42m26s So author encaplulated code for ...
Vladyslav K's user avatar
  • 2,753
5 votes
3 answers
623 views

accessing the Streaming API from a public-facing Force.com Site

I've got a telemetry application for which the Streaming API would be extremely useful. However I want the subscriptions to be publicly accessible. (So that anyone with the client can waltz up and ...
Matt and Neil's user avatar
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 ...
benedwards44's user avatar
5 votes
1 answer
1k views

How do you create a pushtopic query with global variables?

Intuitively I would think this is how to do it, but it does not work. pushTopic.Query = 'SELECT id, name, Doer__c from Object1__c WHERE Doer__c =: UserInfo.getUserId()'; pushTopic.ApiVersion = 29.0; ...
Jay Ryoo's user avatar
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 "...
shannon's user avatar
  • 337
5 votes
1 answer
843 views

What is the Right Setting to Receive Push Notification

So I have a VF page with Streaming API and it's working fine in me because I'm the System Administrator. Now I'm testing out as another user with different profile, and the Streaming API is not ...
mdechavez's user avatar
  • 321
5 votes
1 answer
94 views

Streaming API v29.0 - ID is only 15 characters for delete messages

When we receive a delete message from the Streaming API the ID is only 15 characters not 18. For example ["Id":"a04K0000008H7ld", "OwnerId":"null", "EventType":"deleted","EventCreatedDate":"2013-...
user4843's user avatar
5 votes
1 answer
3k 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 ...
Jan J's user avatar
  • 2,634
5 votes
2 answers
3k views

What is the difference between Event Delivery and Event Publishing in Platform events?

Around Platform event limits, the documentation currently states that the Event Delivery default limit is 50K/DAY but Event Publishing limit is 100K/HR. Note the limit is 48 times more for Publishing. ...
Kunal Choudhury's user avatar
5 votes
1 answer
139 views

Streaming API not working when email is sent from Apex Batch

I have a Batch class that updates Last_Date__c on Project__c object in the Finish method. I have a PushTopic 'LastDateUpdate' on Project__c which is fired when Last_Date__c is updated. I'm ...
d_k's user avatar
  • 1,311
5 votes
1 answer
256 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 ...
d_k's user avatar
  • 1,311
5 votes
1 answer
637 views

Streaming API Message Reliability and Acknowledgement

How does the Salesforce streaming API ensure message reliability? I understand you can replay events from any replay id within the retention period, but this does not guarantee message delivery. ...
ogoodwin's user avatar
5 votes
0 answers
898 views

System.QueryException: sObject type 'PushTopic' is not supported

As part of our managed package we have a post-install script that inserts push topics to support the integration between our solution and SF. Before today this post install script worked fine. I was ...
Kevin's user avatar
  • 305
5 votes
1 answer
5k views

KAFKA to Salesforce [closed]

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.
patelkiran3090's user avatar
4 votes
1 answer
2k 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 ...
Matt's user avatar
  • 1,017
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 ...
realnumber's user avatar
  • 1,623
4 votes
1 answer
1k views

Is there any way to get access to Live Agent status?

The LiveAgent Supervisor Tab makes has access to a streaming API that updates as agents come on and offline. However, I haven't been able to find any documented APIs that allow for this. I'm working ...
colinloretz's user avatar
4 votes
1 answer
1k views

Streaming API Polling Interval

I can't seem to find any configuration variable etc. for the polling interval that cometd uses for the subscription channels. As it polls every second or so, I am hitting the max events per 24h very ...
Boris Bachovski's user avatar
4 votes
1 answer
306 views

When do Streaming API queries occur in the Order of Execution?

At what place in the Order of Execution does the query used in a Streaming API Push Topic run and push the outbound record? This may matter if you are seeking to include field values in either the ...
AlwaysThinkin's user avatar
4 votes
1 answer
1k 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 ...
Kyle B.'s user avatar
  • 223
4 votes
1 answer
537 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 ...
Serhii's user avatar
  • 185
4 votes
1 answer
2k views

Getting PushTopic notifications from salesforce in python [closed]

I am very new to salesforce streaming api. I am trying to get PushTopic notifications from salesforce for my custom object but I am not getting any idea about how should I start. Can you please ...
Deepanshu's user avatar
4 votes
1 answer
2k views

How can I avoid Streaming API Limits Developer Edition

I'm using Salesforce Streaming API to handle agent status in a Call Center application, every time the agent make a call or is answering one agent status is changing and as I'm suscribed to a push ...
Edgar's user avatar
  • 1,289

1
2 3 4 5