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
0answers
7 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/...
0
votes
0answers
19 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&...
1
vote
1answer
23 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 ...
6
votes
2answers
1k views

Accomplishing 'Long Polling' to monitor events - REST or STREAMING API?

My use case is to be notified of any new documents uploaded to the account - { I could potentially use the StreamingApi but my entire infrastructure is based on REST, while the StreamingApi uses ...
7
votes
2answers
3k 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 ...
0
votes
1answer
33 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=...
0
votes
2answers
549 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 {{}}. ...
2
votes
2answers
882 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. ...
1
vote
2answers
657 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
1answer
127 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 ...
6
votes
2answers
2k views

Streaming API : not getting updates for some standard fields

I have created a PushTopic from my salesforce developer account using following query : SELECT Id, FirstName, LastName, Name, Email, Contact_Status__c, Contact_Verification__c, Gender__c, ...
1
vote
1answer
70 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
1answer
48 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
1answer
907 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 ...
1
vote
2answers
2k 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
45 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 ...
18
votes
3answers
15k views

What is the difference between the Streaming API PushTopic, Generic Streaming and Platform Events

Salesforce offers two variants of the Streaming API - PushTopic and Generic. In Summer '17 (v40.0) Platform Events are now also Generally Available (GA). How do they differ and why would you use one ...
1
vote
0answers
16 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 ...
0
votes
0answers
22 views

Get only 100 messages from Salesforce Streaming API

I am using cometd 4.x library to subscribe to Salesforce Streaming API. What I want is that once I subscribe I want to receive at max only 100 messages in each /meta/connect response since our ...
0
votes
0answers
43 views

Issue with establishing handshake for streaming push topics

I'm trying to make a Lightning Web Component that uses a PushTopic subscription, and I'm having a problem with the system not subscribing correctly. I went to debug it with WorkBench to make sure my ...
0
votes
0answers
11 views

Streaming API NotifyForFields Set to Where DateTime

I'd like to setup an Streaming API to have a Event Notification Rule which contains: WHERE PublishAt = TODAY() Such that is sends events that are due today. The documentation does not clearly say if ...
0
votes
0answers
49 views

Emp Connector subscription "already subscribed to channel"

I'm trying to fix an error in a java program that uses the EMP connector. The program, as I understand it (it is not mine, and also I'm pretty new to programming) connects to salesforce, fetches data ...
1
vote
1answer
83 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 ...
0
votes
0answers
29 views

Working with streaming APIs PushTopics to listen to events from multiple orgs in an external app

I am Working on an external app which needs to bring in the records as they are created/updated/deleted/undeleted. Instead of traditional polling and SOQL route I am using Streaming APIs and ...
1
vote
1answer
208 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 ...
1
vote
0answers
135 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 ...
0
votes
1answer
21 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 ...
0
votes
0answers
48 views

How to Push Data to community site web application built with LWC when a record is created or updated?

I have a site where users can log in and access the application, it's built with LWC. Once the user logs in, the profile is Community Profile. The logged-in user would have a linked opportunity record,...
1
vote
0answers
237 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
0answers
77 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
1answer
131 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 ...
2
votes
1answer
33 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 ...
1
vote
1answer
7k 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 ...
3
votes
1answer
349 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
136 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 ...
0
votes
1answer
26 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
101 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 ...
0
votes
1answer
722 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. ...
1
vote
1answer
838 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 ...
1
vote
0answers
64 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
33 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 ...
4
votes
3answers
4k views

Lightning components, CometD - Refused to connect to ... because it violates the following Content Security Policy directive

I am trying to build a Lightning component by an example from Salesforce Developers Youtube channel, here is original video: https://youtu.be/G931jWBnxHU?t=42m26s So author encaplulated code for ...
2
votes
1answer
345 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 ...
0
votes
1answer
105 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 ...
2
votes
0answers
539 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 ...
1
vote
1answer
168 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/...
0
votes
1answer
53 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
105 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
140 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
264 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. ...