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
1answer
23 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
1answer
100 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
1answer
21 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 ...
0
votes
0answers
30 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 ...
1
vote
1answer
40 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 ...
0
votes
0answers
31 views

Salesforce to Salesforce - Get Notification of Updated Knowledge Articles

I am trying to send notifications of the article name and id of an article that changed in one salesforce environment to another salesforce environment. The purpose of sending the notification it to ...
1
vote
1answer
47 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
0answers
21 views

Bulk updates performed via the Bulk API not streamed via the Streaming API?

Our Salesforce integration uses their Streaming API to process Salesforce updates from our clients in near real-time. However, we've recently received a couple of support tickets claiming our data was ...
0
votes
1answer
122 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. ...
0
votes
0answers
20 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 ...
2
votes
0answers
28 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 ...
0
votes
1answer
36 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
1answer
69 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 ...
2
votes
0answers
152 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 ...
0
votes
1answer
30 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
0answers
37 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
1answer
40 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 ...
5
votes
1answer
112 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. ...
1
vote
1answer
2k 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 ...
0
votes
1answer
135 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 ...
4
votes
2answers
1k 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 ...
3
votes
1answer
69 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
0answers
21 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(...
1
vote
1answer
72 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/...
4
votes
2answers
100 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 ...
2
votes
1answer
165 views

Streaming API to refresh a Lightning page/App

I want a functionality which automatically refreshes a lightning page when there is a update in the object record details. I'm trying with Streaming API to achieve this. But the page is not refreshed ...
2
votes
1answer
37 views

Is there any way to mock and test Salesforce Streaming?

Is there any way to mock and test Salesforce Streaming? How do you test Salesforce Streaming API ?
0
votes
1answer
17 views

Feed Streaming API Details to Visualforce Controller

Our sales managers want to buy a product called Hoopla but we don't have the budget, so I've been asked to build something in-house. The product does quite a bit, but the pieces they're most excited ...
1
vote
1answer
254 views

Retrieving old platform events using replayId as -2

I have a lighting component which subscribes to a event channel Notification__e on load. I have used replayId =-2 to read all the old events. subscribe: function (component, event, helper) { ...
0
votes
2answers
309 views

Error attempting to use Streaming Api to query PushTopic

When I run my program using nForce to connect to the client I get this error... 400::The replayId for channel {/topic/mypushtopic} wasn't found using the " + 'provided replay ID map {{}}. ...
5
votes
1answer
96 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 ...
5
votes
0answers
232 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 ...
2
votes
1answer
495 views

Issue with platform event Subscription

A platform event is publishing through an apex trigger and I am trying to subscribe to it using a lightning component, but the lightning component is failing to subscribe every time. It is subscribing ...
0
votes
0answers
206 views

Authentication error when connecting to the Streaming API

I want to subscribe to PushTopic events from my Open CTI application. But I can't even connect to a cometd server. Help me find the problem with my solution. Or maybe there are other ways to subscribe ...
8
votes
2answers
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 ...
6
votes
0answers
245 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 ...
1
vote
1answer
35 views

Using CDC to detect changes in table definitions (DDL)

Can I use Capture Data Changes to get notifications on changes in the Salesforce table definitions, such as Add Column? Thanks in advance
0
votes
1answer
608 views

How to solve inconsistent 403::Unknown Client error on subscribe when using lightning:empApi

Every other time I attempt to use the lightning:empApi component to subscribe to a Push Topic channel the EMP API component reports error '403::Unknown Client' After the EMP API component reports the ...
0
votes
1answer
30 views

How to subscribe to different apps with different channels?

I am creating a system that integrate with the companys' salesforce data using the streamingpAPI and the subscriber model. What I understand is if an app input to my system the consumer key and the ...
0
votes
1answer
139 views

Why would I use Streaming API over Outbound Messages? [closed]

I have been looking into using the Streaming API for an upcoming integration project, and it seems like a modern way of providing near real-time data with durability. In the past I have let my ...
2
votes
1answer
46 views

Under what conditions isTransactionEnd in change events come as False?

I am doing the Subscribe to an Event Channel trail to learn about change events and confused about isTransactionEnd field that is returned in the header. Documentation Change Event Header Fields say ...
1
vote
2answers
968 views

How to use “jsforce” in an external HTML client for streaming api?

I am trying to use streaming API feature of salesforce, and be able to subscribe to the topic in an external client which is HTML based. My code is below: <html> <head> <...
0
votes
1answer
83 views

How to use the Streaming Monitor app?

I have downloaded the app, installed it, added myself to its permission set. Still, I cannot do anything in the tab. See the screenshot. The AppExchange page does not give any instructions, the Github ...
0
votes
0answers
37 views

how to send data from Kafka to Salesforce Streaming Api [duplicate]

i have done with the salesforce to Kafka already , i have some topics in KAFKA like Ptopic1 ,Ptopic2. so the thing here is i want live data of some latitude and longitude that comes from MQTT. i am ...
1
vote
0answers
229 views

Push topic and empApi filtered subscription not working after record page refresh (F5) [duplicate]

I need to use filtered subscription using lightning:empAPI for Push Topic notifications. But it does not work with Id filter after records page refresh (F5) whereas when it subscribes on the first ...
0
votes
1answer
182 views

Can we create platform event dynamically without using UI? [closed]

I want to create a platform event dynamically using any programming language. But I didn't find any API. Can you please tell me I can make platform event dynamically?
0
votes
0answers
376 views

Understanding who is consuming Platform Events, and how much, is it possible?

When a platform event is fired, it is consumed from whichever client is subscribed to its specific channel. If a single event is fired and consumed by 5 consumers, it will count 5 against the Daily ...
0
votes
1answer
360 views

Use Platform Event or Streaming API?

I am new to Salesforce Platform event and streaming API topics. After riffling through some documentation and getting enough confused, asking out for help here if anyone can suggest me the best ...
0
votes
1answer
951 views

Cannot subscribe to Capture Data Changes (CDC) channel using EMP Connector

I'm trying to implement CDC using the EMP Connector sample. I run it against the sandbox and try to subscribe to channels such as /data/ChangeEvents or /data/AccountChangeEvent. I always get this ...
4
votes
3answers
1k 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....