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
52 views

try streaming api in lwc

I tried to use the cometd streaming api with the push topic /systemTopic/Logging to get in lwc all notification when a log is created. I saw that only the api v36 can be used for that so I use the ...
0 votes
0 answers
32 views

BayeuxParameters instantiation error with SpringBoot 3.0.x version [closed]

We have subscribed to Salesforce Queue using EmpConnector.java from Salesforce. This has worked until Spring boot version 2.7.x. While we migrate to Spring boot 3.0.x below exception is thrown on ...
  • 1
1 vote
0 answers
76 views

Alternative to Change data capture

Since Change data capture event (CDC) is a paid add-on after 5 objects, what alternatives we have to get notified about change in salesforce object ?
0 votes
0 answers
101 views

Salesforce Platform Event & CDC data volume understanding

Can someone explain me how many platform events or CDC can be published at the same time. For PE I believe 10000 events at the same time, considering it would have the same limit as object records. ...
1 vote
1 answer
95 views

PushTopic query: triggering an event based on a roll-up summary field

I recently tried to add a roll-up summary field on a PushTopic query but I don't receive an event with the update when a change triggers a recalculation of the roll-up summary field value. Do changes ...
  • 13
0 votes
0 answers
86 views

Not able to generate a ReportAnomalyEvent or ReportEventStream using Streaming API

We have enabled streaming and storage for various events under event manager. While we are able to get payloads for other event type such as LightningUriEventStream, ListViewEventStream, ...
0 votes
0 answers
128 views

How to add additional custom field in streaming event payload?

We have enabled streaming events and are able to publish event streams to consumers. We would like to also include a custom field with each platform event published that would hold the org ID. For ...
3 votes
0 answers
99 views

How can I tell if a field is a non-custom formula field in the REST API?

We have an integration that allows users to specify criteria to listen for on arbitrary object types in Salesforce. The user specifies the object type they want to listen to updates on and then they ...
1 vote
1 answer
54 views

How Streaming API will behave when my client processing is slow?

I need to use Salesforce Streaming API to get the real time updates on the Salesforce records. I have been exploring the EMP Connector example given in the salesforce page. I am having few doubts with ...
0 votes
1 answer
359 views

empApi PushTopic channel does not exist after successful subscribe

I am trying to debug a flaky connection to a PushTopic. Usually it works and is rock solid, except when it doesn't. The connection is being made from LWC after importing lightning/empApi. Occasionally ...
0 votes
1 answer
73 views

What happens if a manual Apex trigger is sending events to an offline endpoint?

Say that I create an apex trigger on the Account or AccountChangeEvent sObject and this trigger acts in a way that it: Gets the event by calling Trigger.new Converts the event to serialized JSON ...
0 votes
0 answers
19 views

Is there any setting in the Salesforce account where we can configure the fixed number of platform events to be generated at a given single point?

We are developing an application that consumes the Platform events generated by the Salesforce application. Our application consumes a salesforce streaming API to listen to new platform events. ...
9 votes
2 answers
2k 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 ...
0 votes
0 answers
26 views

Salesforce as the subscriber from external event bus [duplicate]

We are doing some re-architecturing and want to use a centralized event bus for all applications across our company. So, we are changing the sync direction of several processes, which will potentially ...
1 vote
2 answers
139 views

Getting notified on Streaming Events in Apex?

I need to be notified on the following events: LightningUriEventStream LoginAsEventStream LoginEventStream ReportAnomalyEvent SessionHijackingEvent I know in LWC and Aura components I can use the emp ...
0 votes
1 answer
635 views

Unable to subscribe to streaming platform event in lightning app using emp api

I am unable to subscribe to events using emp API. Taking a look at emp api here I have the following: My HTML: <template> <lightning-card title="StreamingPoc1 Example" icon-name=...
1 vote
1 answer
874 views

Streaming Push Topics - Could not load Push Topics

My colleagues and I are unable to get into the workbench page https://workbench.developerforce.com/streaming.php as we get the following error: I've checked the workbench code and all it does is to ...
0 votes
1 answer
138 views

Is there a debug log level for Salesforce Streaming?

Is there a debug log level for Salesforce Streaming ? For example, let's say that, I have subscribed to PushTopic or Platform Events? Is there a debug log level setting which allows to see the logs ...
1 vote
1 answer
135 views

Streaming API - Can retrieve new as well as OLD value?

i want to get not notified when there are any changes on a field...Im able to get the new value of the field but is it possible to get old(before update) and new(after update) value using streaming ...
  • 57
1 vote
0 answers
30 views

Is possible to know the streaming channel subscriptions of an user?

I subscribe an user to a streaming channel when a button in a component is pressed. The problem is that the user can close and reopen the page of the component and push the button again, so in this ...
  • 21
2 votes
2 answers
370 views

What CometD streaming channels do communities support?

Is there any documentation that says what streaming channels are allowed for communities? (Note that in communities lightning-emp-api methods such as isEmpEnabled never resolve but it is possible to ...
  • 133k
1 vote
1 answer
602 views

Streaming API - How do I automatically queue a retry of a failed messages?

I have an implementation of the streaming api using the .NET CometD client to receive PushTopic changes from a Salesforce platform application. Due to the nature of the process it will in turn ...
  • 287
1 vote
0 answers
293 views

Salesforce Streaming / CometD Scaling

Since CometD is a client / server implementation, i.e. messages flow directly from SalesForce into subscribed clients, I'm wondering what options there might be regarding horizontal scaling of the ...
  • 11
0 votes
1 answer
40 views

Streaming API - update notifications payload

I hope one can help me out answering the following question, as the SF documentation is not precise at this: I know that based on a topics SOQL query and its specific configuration SF resolves whether ...
1 vote
1 answer
128 views

PushTopic record not getting copied over while creating/refreshing the full sandbox

We create trial orgs from environment hub with managed packages and related configuration. This configuration also includes a PushTopic record. However while creating/refreshing full sandboxes from ...
  • 314
1 vote
0 answers
525 views

CometD EMP Connector constantly disconnecting after ~6 hours [closed]

I'm using the Java EMP connector to subscribe to a push topic in our Salesforce instance. The only issue I'm having is that the Connector keeps disconnecting itself after roughly 6 hours (always on ...
0 votes
0 answers
223 views

lightning/empApi: clarification on replayId param in subscribe method

The LWC Docs describe the replayId parameter in the lightning\empApi subscribe method as follows (emphasis is mine): Indicates what point in the stream to replay events from. Specify -1 to get new ...
1 vote
1 answer
241 views

Salesforce Streaming API - Relationship query

One of the limits of PushTopic query is not being able to have relationships in the soql. I'm wondering if there is any solution to this or any alternative to PushTopic. I'm looking for a solution ...
  • 21
3 votes
1 answer
119 views

PushTopic for OpportunityContactRole

I'm creating PushTopics for streaming api and have trouble creating one for OpportunityContactRole object. Executing the following apex code in Developer Console Window PushTopic pushTopic = new ...
  • 131
0 votes
1 answer
202 views

Platform Events for child is getting published before parent

I am publishing the events in order such that Parent event is published first then the child. Using System.debug I can see that the controller goes to publish event method for Parent and then the ...
3 votes
1 answer
672 views

LWC + Apex from EMP Api callback : Firing dispatch event or an apex call from Streaming api callback fails in LWC, any workaround?

When a dispatch event or an imperative apex call is made from a streaming api callback, then it throws this error in browser console window and reloads the page . {"event":{"descriptor&...
0 votes
1 answer
35 views

How to get feeds from salesforce org in real time on mobile app

I am having a community portal on one end and a mobile app on second to send and receive feeds(and its comments) on specific cases. So if a user post a feed from portal, how can I get the feed on my ...
  • 158
0 votes
0 answers
179 views

How to keep the session alive while subscribing push topic using lightning empApi?

I have a requirement to subscribe to push topic for which i have implemented using lightning empApi and have open the browser in a VM for continuous reading of events and do some actions. The issue is ...
  • 59
2 votes
1 answer
2k views

Is platform event limits considered for every 24 hours or hourly?

I am bit confused on the period considered for event limits. As per the doc the 250K limit(Unlimited) is for 24 hr rolling period But when i see check the object that gives the limits for the events ...
4 votes
2 answers
2k 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. ...
0 votes
1 answer
1k views

403::Unknown Client Salesforce Workbench Push Topic

I have an object in Salesforce that I am trying to subscribe to using a Push Topic that I created. But when I try to subscribe to that push topic from Workbench I get 403::Unknown Client exception. ...
2 votes
0 answers
145 views

Push Topics Constant Streaming

I am trying to understand why I have a constant stream of successful handshakes within an org even though I have not explicitly subscribed to a topic. Workbench spews hundreds of successful handshakes ...
  • 21
2 votes
0 answers
73 views

Streaming api when Case (700 fields) is closed [closed]

I would like to use the streaming api for the following use case, "When a case is closed the complete object should be published. Case object contains more than 700 fields' After a quick ...
1 vote
1 answer
207 views

Subscribing to a platform event in a vf page that is a part of a force.com site

I have a requirement where i have to refresh the page automatically when a record changes, i'm doing this using platform events whenever an event is published the VF page that has subscribed to the ...
1 vote
2 answers
982 views

How to run report and dashboard for real time event monitoring data

I have enabled real time event monitoring in production org and now requirement is to run report for couple of events(URIEvent,APIEvent,LightningURIEvents) I dont see we can create report on big ...
  • 11
3 votes
0 answers
857 views

Creating a nodjs client for salesforce streaming api

I am trying to build a NodeJS app hosted on Heroku to subscribe to Salesforce Platform events. Now the problem is this app will not have any Webpage, just an app which should receive the events from ...
  • 41
0 votes
1 answer
106 views

Is there a simulator for Salesforce Streaming API?

Is there a simulator for Salesforce Streaming API? The reason is that minimum session timeout value is 15 mins. So, for some usecases, I would have to wait for minimum 15 minutes to test some code ...
1 vote
0 answers
164 views

Change Data Capture Gap Events with multiple record ids

Looking through CDC Gap Events, it appears that new values for the objects aren't included, but we can have multiple records changed in a single gap event. Is it safe to assume that the values for ...
3 votes
1 answer
222 views

Can we replace legacy Streaming API code with its latest versions?

Barcode reader in the our Airport vip lounges is triggering a REST Service in our Salesforce service org and after that the screen of the vip lounges should get refreshed with the information of the ...
  • 193
5 votes
1 answer
460 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. ...
2 votes
1 answer
11k views

How to subscribe platform events on external systems?

I have requirement to subscribe salesforce platform events in external systems(adobeConnect) and display event notifications. For that I have a trigger to publishing the platform events and I wrote a ...
  • 31
1 vote
1 answer
532 views

Connecting to pushtopic event via Java Client via Proxy

I am trying to run the emp connector sample provided by Salesforce. When i tried running the sample, i was getting socket timeout. After investigating, i realized that our company is behind firewall ...
  • 95
9 votes
3 answers
5k 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 ...
  • 747
3 votes
1 answer
240 views

Is there an online, free, hosted solution to test and monitor Platform events outside of Salesforce?

So, I am trying to test Platform events outside of Salesforce. I know it can be checked with PE Triggers. But I wanted to check it outside. So, is there a tool or utility to test PE outside Salesforce ...
0 votes
0 answers
42 views

empAPI - can't call subscribe method

Can anyone tell me why this code handleCDC(response) { console.log(JSON.stringify(response)); } subscribe(channel, -1, handleCDC).then(response=>{ console.log('success', JSON.stringify(...
  • 747