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
0 votes
1 answer
44 views

Problem with LWC that displays a list of Accounts that re-orders in real-time based on their LastModifiedDate (without webpage refresh)

What I'm trying to do: Display a list of Account records where the order of the accounts updates dynamically in real-time (in a LWC - it doesn't have to be but I think this is the best way to do this) ...
Matt's user avatar
  • 103
0 votes
0 answers
37 views

Using lightning-emp-api in Console apps

We know that embedding components that continuously poll server is not good for console apps. Polling continuously means the app is constantly sending requests to the server, even when there's no new ...
Rajendra Singh Nagar's user avatar
0 votes
1 answer
299 views

Could not load Push topics even for Admin users

We are not able to get past this error in work bench even for Admins and we tried with different api versions and nothing helped. Error: "Could not load Push Topics. Ensure the both the REST and ...
nishanth reddy's user avatar
0 votes
0 answers
109 views

Salesforce empApi (pushTopic) error

I have a managed package that is deployed at multiple sites without issue however at one site i am getting a an error thrown to the listener (I am subscribing to a pushTopic from an LWC component like ...
ravent's user avatar
  • 67
1 vote
1 answer
183 views

"403: User not enabled for streaming" on apex run test sync

I'm trying to run the unit tests with local command line console, and with sf apex run test -o my-user-name --synchronous, and it gives me the following error: Warning: @salesforce/cli update ...
Melissa's user avatar
  • 11
1 vote
0 answers
94 views

Debugging Streaming API: Receive and monitor all CometD listeners (subscribers)

We have successfully built a couple of integrations to other systems using the Streaming API (mostly Custom Platform Events). However, our "adapter" (written in TypeScript, using JSForce ...
J. Schreiber's user avatar
  • 1,811
-1 votes
1 answer
1k views

Streaming Push Topics - Could not load Push Topics. Even though APIs are enabled in SF

I can't seem to get past this error in workbench even though APIs in the org are enabled using the latest or older api version
m_cain1's user avatar
0 votes
0 answers
219 views

Idiomatic way to call external APIs from Salesforce

I'm new to Salesforce, and am looking for advice on how to best approach a scenario where a Salesforce runtime communicates with an external REST-service that is under my control. My background is web-...
Arne's user avatar
  • 101
0 votes
1 answer
762 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 ...
Acher Klein's user avatar
1 vote
0 answers
330 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 ?
SharpCoder's user avatar
1 vote
0 answers
677 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. ...
SF Learner23's user avatar
1 vote
1 answer
166 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 ...
Maitake's user avatar
  • 13
0 votes
0 answers
309 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, ...
Strong Like Bull's user avatar
0 votes
0 answers
249 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 ...
Strong Like Bull's user avatar
3 votes
0 answers
195 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 ...
Mark Evans's user avatar
1 vote
1 answer
120 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 ...
john vijay's user avatar
0 votes
2 answers
904 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 ...
Daniel Collier's user avatar
0 votes
1 answer
106 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 ...
pragmatic learner's user avatar
0 votes
0 answers
21 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. ...
crk2904'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
0 votes
0 answers
32 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 ...
Carryonplease's user avatar
1 vote
2 answers
340 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 ...
Strong Like Bull's user avatar
0 votes
1 answer
1k 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=...
Strong Like Bull's user avatar
3 votes
2 answers
8k 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 ...
Oriol Bonany's user avatar
0 votes
1 answer
262 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 ...
a3.14_Infinity's user avatar
1 vote
1 answer
240 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 ...
Tejas's user avatar
  • 57
1 vote
0 answers
55 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 ...
juldeh's user avatar
  • 21
2 votes
2 answers
601 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 ...
Keith C's user avatar
  • 137k
1 vote
1 answer
799 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 ...
Kyle J V's user avatar
  • 285
1 vote
0 answers
406 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 ...
timd's user avatar
  • 11
0 votes
1 answer
52 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 ...
Jacl0rt's user avatar
1 vote
1 answer
194 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 ...
Amit's user avatar
  • 354
1 vote
0 answers
790 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 ...
Dan Coghlan's user avatar
1 vote
0 answers
442 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 ...
Matthew Souther's user avatar
1 vote
1 answer
367 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 ...
SamuelJ's user avatar
  • 21
3 votes
1 answer
149 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 ...
Vémundr's user avatar
  • 131
0 votes
1 answer
273 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 ...
AkasaMin's user avatar
3 votes
1 answer
967 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&...
Nagendra Singh's user avatar
0 votes
1 answer
49 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 ...
Navii's user avatar
  • 158
0 votes
0 answers
262 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 ...
Vivek's user avatar
  • 59
2 votes
1 answer
4k 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 ...
Anil Shivaraj's user avatar
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
0 votes
1 answer
2k 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. ...
Chashmeet's user avatar
2 votes
0 answers
185 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 ...
frasuy's user avatar
  • 21
2 votes
0 answers
85 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 ...
lopez.regalado.fj's user avatar
1 vote
1 answer
441 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 ...
Gurubaksh Grewal's user avatar
1 vote
2 answers
2k 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 ...
sandy's user avatar
  • 11
3 votes
0 answers
1k 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 ...
Aks's user avatar
  • 41
0 votes
1 answer
220 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 ...
a3.14_Infinity's user avatar
1 vote
0 answers
254 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 ...
Robin Singh's user avatar

1
2 3 4 5