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
40 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
24 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 ...
3
votes
2answers
148 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
56 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
17 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(...
0
votes
1answer
27 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
56 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
49 views

Streaming API to refresh a Ligthtning 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
25 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
13 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 ...
0
votes
1answer
80 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
133 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
81 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
89 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 ...
0
votes
0answers
124 views

Getting change data capture events in Python

I am trying to figure out how to subscribe to streaming channel and get cdc events in Python, after success in creating new PushTopic and StreamingChannel. I saw some code examples in Java and NodeJS,...
0
votes
0answers
16 views

Metrics on Salesforce Streaming topic messages not being consumed

I'm currently working with the Salesforce Streaming API and was wondering if there is any way one can monitor if there is any "lag" (as you got in Kafka) on specific Salesforce topics. That would ...
2
votes
1answer
237 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
16 views

What is the best practice to initialize the state of Streaming API consumer?

When you use Streaming API with Durable Streaming and you turn on a new consumer, you might potentially desire to have an initial load for all records you are subscribed to. If the last update for ...
0
votes
0answers
105 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 ...
0
votes
0answers
83 views

Lightning empApi : Subscriber method calls in controller or helper js

Auto refreshing the lightning component, Below code works for without filter. handler doInit function called subscriber method. But after multiple filter button added in component and its not ...
8
votes
2answers
883 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
205 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 ...
0
votes
0answers
29 views

EMP connector impl

I have some topics and users subscribed to this topics(user per topic). All examples contain only one user and topic and one instance of connector, so do i need to create a new connector instance ...
1
vote
1answer
27 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
377 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
27 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
69 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
38 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 ...
0
votes
0answers
96 views

Getting a list of clients listening to Streaming API - Debugging Recurring 403::Unkown client errors for PushTopics

We have a Ruby-on-Rails application which has a "listener" using Restforce(and a Faye 0.8.9 client) for 4 Push Topics from Salesforce. All our PushTopics are API version 41 A few days ago the ...
1
vote
2answers
577 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
70 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
32 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
127 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
103 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
229 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
261 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
566 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
683 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....
1
vote
0answers
294 views

Streaming API PushTopic VS Trigger and API Callout

I haven't used the Streaming API yet. I was just researching on it actually and I like the option for PushTopics. However it's not clear to me what's the advantage/difference using that versus a ...
0
votes
1answer
66 views

Streaming api sample code

I want sample code for streaming api which should not used any package. the code should not have js package or any. i want to understand how streaming api is working. could anyone help on that please
0
votes
0answers
28 views

Pushtopic for streaming api

I am currently trying to set up a stream api for email message. The problem I am currently having is that Pushtopics do not support email message(that I know of). Does anyone know of a work aound for ...
3
votes
1answer
207 views

Durable Message Replay from Change Data Capture

Given the following posts from Salesforce: Message Durability Replay Events Sample: Code Walkthrough StreamingReplayClientExtensions/java/CometDReplayExtension.java The way I'm understanding the ...
3
votes
2answers
2k views

Change Data Capture

With the new Change Data Capture tool coming out soon, why would someone use this over Platform Events? My understanding is that CDC utilizes Platform Events under the hood anyways.
0
votes
2answers
285 views

Notify or update salesforce records from external application

As Integration part is new to me so, tried little demo project which gets the external data and creates the record in custom object or so from a button click. Using HttpRequest method did all the API ...
0
votes
1answer
50 views

Streaming API to transfer FILES to online cloud storage

Using the SF documentation I have created a custom object with the FILES related list. Using workbench I can successfully see that it receives a message when a new record on that new object is ...
2
votes
0answers
33 views

Streaming API. How to resolve circular notification dependency

I have two different systems (salesforce (SF) and private one (PO)). They must be synchronized. To provide near real time synchronization on salesforce part we are using Streaming API (similar ...
4
votes
1answer
274 views

Salesforce Streaming API: configure Salesforce notification triggers for streaming

I'm trying to subscribe on notifications from salesforce using Streaming API. So I've done: I've created streaming channel I used java client I've generated events via REST API All this steps ...
2
votes
1answer
414 views

Publishing platform event using trigger?

I'm trying to stream changes to tables such as Accounts to a handler that will update our data warehouse. I tried pushtopics but ran into limitations in query size and longtext fields, so now I'm ...
1
vote
1answer
101 views

Salesforce Shield Decryption When Using API

Our application supports reading data from salesforce in a batch form and also as a real time sync. We have been using the salesforce SOAP api and the real time streaming api for the two use cases ...
3
votes
1answer
601 views

Subscribe to multiple channels using CometD

I'm trying to subscribe to multiple channels with CometD. I'm using the CometD static resource and syntax as per the Trailhead project: https://trailhead.salesforce.com/projects/workshop-platform-...