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.

Filter by
Sorted by
Tagged with
-1
votes
0answers
14 views

Platform Event is not having event 4 hours and post if any event generated then it not send the event to middleware [closed]

Current Setup: Scheduler: Java Platform Event: SFDC, Custom Event m/c configuration: 4 GB RAM, 100GB SATA HDD, CUP Utilization (MAX) : 20% Memory Utilization (MAX): 56% Case: When we started ...
0
votes
1answer
38 views

Can't get Platform Event Retries to work?

I am not seeing any evidence that processing continues after I raise a EventBus.RetryableException. Logs indicate the retry event is thrown, then nothing. My test class, which is the same as ...
3
votes
1answer
69 views

Test Class - System.CalloutException: You have uncommitted work pending - Platform Event

I am using platform events and in one of the after triggers I am calling a method in a class where the method is annotated with @Future(Callout=true) In my test method below I am doing some DML to ...
1
vote
1answer
14 views

Which wsdl attribute should I apply to the platform event file for publish behavior

I have changed a platform event's publish behavior to be publish after commit. Since we are using salesforce dx to deploy the changes, we need to capture the change in the related file. Obviously ...
2
votes
1answer
43 views

Enterprise Framework for Platform Events : Architecture Perspectives?

I am trying to build an Enterprise level framework on the top of Platform Events accessible to our external vendors, internal API's and internal developers. After doing a deep analysis on the ...
1
vote
1answer
64 views

Why isn't my platform event chain working?

I've create the following method: //@NotForProduction public class TEST_SandboxDataFactory { public static void create() { List<String> sObjectTypeNameList = new List<String>()...
0
votes
0answers
12 views

Unable to deploy platform events from one sandbox to other

Trying to deploy platform events from one sandbox to another using jenkins. On plat form event we have trigger as well. While deploying it is throwing following error even though the package version ...
1
vote
0answers
14 views

Insufficient access error when trying to change api name of platform event or delete platform event

I am administrator in my scratch org. But when I try to change api name of an existing platform event or try to delete it, I got an error message saying that I don't have sufficient access to it. I ...
0
votes
1answer
42 views

SFDX push error: Property 'publishBehavior' not valid in version 45.0

I'm trying to push source to a scratch that I've been using for 3 weeks, but suddenly I'm getting an error on all my platform events: Property 'publishBehavior' not valid in version 45.0 It's ...
7
votes
1answer
144 views

How to determine Platform Event Size in Apex to ensure to be within < 1 MB

The documentation on Platform event states: The maximum event message size that you can publish is 1 MB. Is there a native and reliable way in Apex to check whether the Platform Event I am about ...
0
votes
1answer
41 views

How to subscribe to a platform event just once per page load?

I have some code that works fine, the subscription works well, and the code functions as expected, too. The problem occurs when I switch lightning tabs and go back to the lightning tab with my ...
1
vote
1answer
90 views

LWC Continuation SOAP API does not seem to be working

I`m trying to execute Continuation from LWC action. The thing is that I use it for SOAP API. It is a long-time running request, but I have to show a loading spinner until the response will be ...
3
votes
1answer
73 views

Critical Update: Require User Access to Apex Classes Invoked by Flow when running user = Automated Process

Given Critical Update Require User Access to Apex Classes Invoked by Flow is activated Apex trigger that subscribes to a Platform Event Trigger logic does DML Process Builder executes and makes ...
1
vote
1answer
15 views

Many platform events per transaction and affect on Heap

Given 100 platform events published for Foo__e in the same second Each platform event represents 100K of data (10MB data altogether across the 100 events) When SFDC presents the events to the ...
0
votes
0answers
21 views

Subscriptions not seen in Salesforce platform events

I am trying to subscribe to Salesforce Platform Events in my Developer Edition through AWS Lambda via Connected App(Using nforce SDK). Code is as follows: var AWS = require('aws-sdk'); //Importing ...
2
votes
2answers
65 views

Including External ID in CDC

We are implementing CDC to mirror record changes in Salesforce to our other platforms. When a change occurs to a record the recordIds are passed which contain the Salesforce IDS. However our external ...
1
vote
0answers
28 views

Triggering process from Platform Event started by REST Guest User?

I'm creating a process that is triggered by a Platform Event, resulting from an incoming API call via REST Guest User context. I want the process to fire a custom notification, but it's not working. ...
3
votes
0answers
66 views

Custom Notifications in Process Builder: how to access Platform Event parameters

I'm working with the new (Summer '19) Custom Notifications, building a Process that is triggered by a Platform Event. When I set up the trigger node, I select the Platform Event, and a related record ...
-1
votes
1answer
35 views

Event Triggers - Use Cases

I was reading the summer 19' release notes and saw the section about event triggers. Can someone please explain what are those triggers? For which use cases should I use them?
0
votes
0answers
32 views

Workflow not executing while doing DML inside Platform Event trigger

I am trying to log all the exception in a Debug_Log__c object and send a mail through workflow (written on Debug_Log__c) using platform events. When I am using the platform event trigger to insert ...
4
votes
3answers
167 views

Platform Event Design when Subscribers are Apex Triggers

This is a general design question on how to structure trigger files for platform events. Say I publish a platform event "lead created" and I want to do several distinct things within the same ...
1
vote
1answer
33 views

lightning:empApi and Callout: Streaming API

I created a test platform event with checkbox, added my custom object to Change Data Capture and did this: empAPI.cmp: <aura:component implements="flexipage:availableForAllPageTypes" access="...
4
votes
0answers
37 views

Can a Change Event Trigger include the same record multiple times?

I'm starting to play with Change Event Triggers, building a handler framework and I'm not sure if I need to handle a scenario where the same record would be included in the same Change Event trigger ...
0
votes
1answer
57 views

Lightning empApi auto refreshing working for same object different record too

I am using lighting empApi to refresh the component whenever a case record is created. I have a trigger & apex class in case object that fires and update the platform event object. In Detail-...
2
votes
0answers
54 views

CometD & empAPI Issues when subscribing to Platform Events [closed]

As we are using Cometd and platform Events to get the communication happen between Asynchronous Apex and Lightning Component(Lightning Out) it's working fine for some times, and getting the following ...
0
votes
0answers
42 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
337 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 ...
0
votes
2answers
39 views

Apex after insert trigger - variable does not exist

I am calling another class from my trigger and it works in sandbox, but when I try to validate my deployment (I am using a change set to deploy) in prod, it says "variable does not exist: ...
1
vote
2answers
82 views

Lightning empApi subscribe and unsubscribe method in JS constroller

I have an component using lightning empAPi. In controller, I am using subscribe method and didn't using unsubscribe method. Is that required to use unsubscribe method in controller. IF required please ...
3
votes
2answers
64 views

How do I pass a platform event payload from a PB process to a flow?

I read elsewhere that I can pass an event's payload to a flow from a process builder process. When I try pass values in my process all I see are the different fields from my platform event object. Do ...
0
votes
0answers
39 views

Does Salesforce have a support system?

Does Salesforce have any support platforms that can offer assistance w.r.t. questions such as: 403:denied_by_security_policy:create_denied when subscribing to platform events that have a heightened ...
2
votes
0answers
62 views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
6
votes
1answer
108 views

Testing BatchApexErrorEvent trigger

I have a batch class which implements the Database.RaisesPlatformEvents interface. This interface has recently been introduced and helps log unexpected exceptions: https://developer.salesforce.com/...
0
votes
0answers
18 views

Not able to receive Platform Event in Salesforce1 App

I have created Lightning Component to receive Platform Event using lightning:empApi component and Its working fine. But when i am adding that component in Navigation Item for Salesforce1 app. It is ...
1
vote
0answers
67 views

Platform event subscribers on Visualforce page not being called always when platform event is published

We have an implementation in which there are multiple Visualforce pages(seven pages). These pages are using platform events to communicate between each other. The JavaScript code to subscribe to ...
0
votes
1answer
64 views

Problem when assigning a record variable to a platform event Message in a flow

I am currently using an organisation with the Summer 19 release update and the API version 46.0 in one of my scratch organisations. I am unable to assign a record variable for stored a Platform Event ...
2
votes
2answers
394 views

403::Organization total events daily limit exceeded

I'm trying to connect a cometd client to stream platform events, however, I'm getting an error that says I've exceeded my "total events daily limit". {"clientId":"1xj1529zd8mx3ol01sl8hlzm5ewwj","...
9
votes
1answer
235 views

What causes platform events to fail to be published and should I cater for failed platform event creations?

After examining docmentation I have began to create a platform event from Apex, but I have 3 unanswered questions when it comes to the creation of platform events concerning unsuccessfull publishing ...
2
votes
1answer
36 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
1answer
57 views

How to get custom field returned by Platform Event in Lightning Aura Component

I haven't been able to figure out how to access a Custom Field on a Platform Event within an Aura Component js callback handler, does anyone know how I can do this, or where it exists in the ...
0
votes
0answers
38 views

Platform Events from flow are processed one by one or in bulk?

I know events are processed asynchronously in the subscriber. Currently we have a flow that creates an event (and publish it), We are creating a trigger that listens to that event and invokes a http ...
2
votes
1answer
52 views

Platform Events and Transaction

I want to trigger an Event from Apex Trigger, but since Platform event cannot be rollbacked, is there a way to publish it only when the transaction is successfull?
0
votes
1answer
49 views

Platform events and asynchronous calls conflicting with SOQL statement

I am using platform events to send an event in from an external system that triggers a lead to be converted via apex. The incoming platform event sends data that is needed to convert the lead and ...
0
votes
1answer
62 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
1answer
71 views

Platform Events Consideration for Duplicate Messages and OOD

Since there is no standard documentation on this, I'm willing to know how would platform events deal with: Duplicate Messages (Due to multiple triggers on the same record). Out Of Order Delivery.
0
votes
1answer
76 views

Salesforce Platform Events and JMS

Could anyone please explain me what is the connection between JMS ans Salesforce platform event? Is both are doing the same job?
2
votes
0answers
122 views

Error handling when publishing platform events

We are in the process of redesigning our system to use platform events as a replacement of traditional trigger-based approach when all processing happen synchronously sharing single transactional ...
1
vote
1answer
63 views

Platform Event batching

I have a simple Platform Event called Timesheet_Approval__e. As a test, I publish a batch of 1000 events with this anonymous apex: List<Timesheet_Approval__e> approvals = new List<...
0
votes
1answer
62 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?
3
votes
2answers
185 views

Possible to use Process Builder subscribed to Platform Event to create New Record?

I know it's possible to create a Process Builder that executes based on receiving a Platform Event but is it possible to use the Process Builder to simply create a new Record every time an event is ...