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
0 answers
27 views

CDC channel stops receiving messages and never picks back up

Working on integrating Salesforce changes back to SQL server, so we have a cometD connection in our .NET app for listening to changes to a specific entity in salesforce, then we can parse out the ...
Brian McClain's user avatar
-1 votes
1 answer
93 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
60 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
0 answers
204 views

Streaming API: How to Determine What Channel a User is Subscribed To in LWC or Apex?

I'm trying to determine either on the server or client side if a user is already subscribed to a channel. The Use Case: I would like to use a filtered push topic with different filters, but per the ...
Edwin Schaeffer's user avatar
0 votes
1 answer
355 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
165 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
482 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
128 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
182 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
193 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
152 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
98 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
1 answer
594 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
94 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
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. ...
crk2904's user avatar
9 votes
2 answers
3k 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
27 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
231 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
961 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
1 vote
1 answer
2k 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
185 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
186 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
47 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
487 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
  • 135k
1 vote
1 answer
710 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
  • 287
1 vote
0 answers
361 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
47 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
171 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
  • 344
1 vote
0 answers
658 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
319 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
315 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
145 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
236 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
837 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
38 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
213 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
3k 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
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. ...
Kunal Choudhury's user avatar
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. ...
Chashmeet's user avatar
2 votes
0 answers
170 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
78 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
268 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
1k 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
977 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
180 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
231 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
3 votes
1 answer
251 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 ...
Chetan's user avatar
  • 303
5 votes
1 answer
551 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
2 votes
1 answer
14k 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 ...
Chandu's user avatar
  • 31
1 vote
1 answer
662 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 ...
Darkdog's user avatar
  • 95