Questions tagged [platform-event]
Platform events are part of Salesforce’s enterprise messaging platform. The platform provides an event-driven messaging architecture to enable apps to communicate inside and outside of Salesforce. Custom data in your events are stored in custom fields that you define.
445
questions
0
votes
1
answer
36
views
Change the presence status of a user via an API
From an external app I would like to change the presence status of a user via an API. I was not able to figure out if there is a public API but found this js code that supposedly works in an apex vf ...
1
vote
1
answer
95
views
How to Create an LWC Component to Show a Warning When the Industry Picklist Value Changes on a Salesforce Standard Account Page?
I'm working on a custom Lightning Web Component (LWC) to be added to the standard Salesforce Account page. This component aims to display a warning message as a toast notification whenever the ...
0
votes
0
answers
21
views
Platform Events and NetSuite [duplicate]
I want two way sync with NetSuite with realtime data updates. I feel that Platform Events will be the best solution for this but I am curious how authentication works when publishing to them. Also ...
0
votes
1
answer
66
views
Not able to subscribe to a platform event from Workbench
I'm trying to subscribe to a platform event in a Developer sandbox with the use of workbench (API 58.0). The use of Streaming API is enabled in setup.
Via the queries -> Streaming Push Topic
I am ...
0
votes
0
answers
74
views
Beforeunload unexpected behavior in LWC
Im trying to publish a platform event from a LWC if the browser tab gets closed or the browser itself gets closed. It works fine for both of the cases, however if I repeteadly click on the refresh ...
1
vote
0
answers
41
views
Why namespace prefix is not required while subscribing to platform event from LWC in a namespaced sсratch org?
I’m working on a managed package. While testing a beta version in a sandbox, I’ve noticed that my LWC failed to subscribe to a platform event. The reason was that I didn’t specify the namespace prefix ...
0
votes
0
answers
21
views
Override the Agent side live agent window with custom solution
I am facing a challenge with implementing a custom agent-side chat window that displays real-time chat messages. I've mentioned creating a platform event to access real-time chat messages, but there's ...
0
votes
0
answers
30
views
Web callout 1 record at a time - Future vs Platform events
So I have a situation where the third party web callout can only process record at a time.
From SF perspective, if I would like to mass process records and send them to the external web service.
I am ...
2
votes
1
answer
41
views
How does `EventBus.TriggerContextsetResumeCheckpoint()` work?
I'm currently looking at the "Apply Best Practices for Writing Platform Event Triggers" Trailhead where EventBus.TriggerContext.setResumeCheckpoint() is apparently used to set "...
1
vote
2
answers
375
views
Platform Events a nightmare - How to make them work in real life
I am trying to build a Platform Event-based application logger where arbitrary application code calls Tracker.log(...); and this is sent as an Event into an external database via an API. As it's ...
0
votes
0
answers
63
views
LWC Embedded in Aura Component to dispatch Events on Close Browser tab or Window
Hi I've been working with platform events in LWC, and I need to monitor user activity on an specific object record page.
It works well but I had to do kind of a ping system between the LWC insances on ...
0
votes
0
answers
79
views
Platform Events LWC Subscription not listening on Service Cloud
Hi I have tested this same code and setup in a sales cloud playground, and it works smoothly.
However when I move the code to a Partner Developer Edition Service Cloud. The LWC Is not receiving the ...
1
vote
2
answers
131
views
Are Publish immediate DML and DML Statements 2 different limit sets in Apex transaction?
We see in a debug log, as below:
Number of DML statements: 1 out of 150
Number of publish immediate DML: 59 out of 150
Do we have separate limits for above 2 for a single transaction in apex?
0
votes
1
answer
231
views
Filtering Platform Event Subscriptions with a LWC
I've got a LWC embedded on a lightning page for the SBQQ__Quote__c object. It's subscribing to a platform event channel. I have a trigger setup on Opportunity (parent object of SBQQ__Quote__c) that'...
2
votes
1
answer
146
views
Lightning Web Security - LWC cometD subscribe error
I have a lwc component, used on internal platform app and experience site, which listens to platform event.
We use empApi to subscribe to platform events when user is internal and cometD library to ...