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
26 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, ...
user avatar
  • 245
0 votes
0 answers
27 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 ...
user avatar
  • 245
3 votes
0 answers
47 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 ...
user avatar
1 vote
1 answer
25 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 ...
user avatar
0 votes
0 answers
93 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
0 votes
0 answers
15 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. ...
user avatar
6 votes
2 answers
753 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 ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
0 votes
0 answers
21 views

Visualforce PushTopic subscription: does field filtering work?

I'm testing filtered subscriptions to pushtopics with a test visualforce page. This is the code: Controller: public with sharing class PruebaPushTopicFiltradoController { public List<...
user avatar
0 votes
0 answers
26 views

no event sent from listening to a pushtopic for PendingServiceRouting

I am following the guide here to set up external routing. The emp connector appears to succeed in listening to the push topic created by producing the output "Subscribed: Subscription [/topic/...
user avatar
0 votes
0 answers
39 views

How to get same level of detail on a streaming event in Apex as emp API?

In a LWC, I can use emm api and get notified on user activity such as login as follows: {"data":{"schema":"ajVKA1jUItQ5DHnteVcwYg","payload":{"EventDate&...
user avatar
  • 245
1 vote
1 answer
56 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 ...
user avatar
  • 245
0 votes
1 answer
238 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=...
user avatar
  • 245
1 vote
1 answer
339 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 ...
user avatar
0 votes
1 answer
90 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 ...
user avatar
0 votes
1 answer
79 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 ...
user avatar
  • 47
1 vote
0 answers
20 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 ...
user avatar
  • 21
2 votes
1 answer
221 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 ...
user avatar
  • 130k
1 vote
1 answer
385 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 ...
user avatar
  • 287
1 vote
0 answers
207 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 ...
user avatar
  • 11
0 votes
1 answer
28 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 ...
user avatar
1 vote
1 answer
107 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 ...
user avatar
  • 304
1 vote
0 answers
368 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 ...
user avatar
0 votes
0 answers
120 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 ...
user avatar
1 vote
1 answer
181 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 ...
user avatar
  • 13
2 votes
1 answer
56 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 ...
user avatar
  • 121
0 votes
1 answer
167 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 ...
user avatar
3 votes
1 answer
482 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&...
user avatar
0 votes
1 answer
28 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 ...
user avatar
  • 158
0 votes
0 answers
121 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 ...
user avatar
  • 59
1 vote
1 answer
1k 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 ...
user avatar
4 votes
2 answers
1k 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. ...
user avatar
0 votes
1 answer
992 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. ...
user avatar
2 votes
0 answers
110 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 ...
user avatar
  • 21
2 votes
0 answers
44 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 ...
user avatar
1 vote
1 answer
151 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 ...
user avatar
1 vote
2 answers
767 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 ...
user avatar
  • 11
2 votes
0 answers
711 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 ...
user avatar
  • 31
0 votes
1 answer
74 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 ...
user avatar
1 vote
0 answers
134 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 ...
user avatar
3 votes
1 answer
191 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 ...
user avatar
  • 183
5 votes
1 answer
352 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. ...
user avatar
2 votes
1 answer
9k 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 ...
user avatar
  • 31
1 vote
1 answer
463 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 ...
user avatar
  • 79
7 votes
3 answers
4k 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 ...
user avatar
  • 687
3 votes
1 answer
166 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 ...
user avatar
0 votes
0 answers
25 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(...
user avatar
  • 687
1 vote
1 answer
230 views

lightning/empApi does not handle new record creation

Let's say i have custom object LOT__c in my org and LWC from https://developer.salesforce.com/docs/component-library/bundle/lightning-emp-api/documentation then I set channel name to /data/...
user avatar
  • 687
4 votes
2 answers
208 views

Is there an API call to check if streaming is enabled for a Real Time Event Monitoring Event (Setup > Platform Tools > Event Manager > Event)?

So as part of the Salesforce Shield release there is a new Salesforce Settings page at "Platform Tools" > "Events" > "Event Manager". As seen in the image above, the Settings page contains a Grid ...
user avatar