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
5
votes
1answer
38 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
0answers
21 views

Anyone connected a Salesforce org to e.g. Loggly or DataDog?

Cloud-based logging environments provide tools to help analyze log files. We are looking at using Platform Events as one of the outputs of our logging calls per Logging frameworks that use Platform ...
2
votes
2answers
36 views

How to test a Platform Event Trigger that makes callout(s)?

I am integrating with a third-party API that calls an unauthenticated webhook (HTTP Post) that I have implemented with a small payload; my code then uses that payload to make an authenticated call to ...
1
vote
1answer
33 views

Logging frameworks that use Platform Events - what is the full list?

I've found these two excellent projects: Andrew Fawcett's Advanced Logging with Platform Events Robert Sösemann's Apex Unified Logging that use Platform Events for logging and include a client to ...
1
vote
1answer
20 views

Confirmation that Platform Event objects can be created dynamically (starting from an API name string)

I'm looking for confirmation that a Platform Event SObject can be created starting from the API name of the type using e.g. Type.formName('...').newInstance() just as a normal custom SObject can be. (...
1
vote
1answer
49 views

Record Update triggers Process Builder, but Platform Event Action Doesn't Occur

In a sandbox, process builder is triggering a platform event on record updates. When I update the record, I am not seeing my platform event in the debug logs or in SF workbench. To confirm the ...
0
votes
1answer
57 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
15 views

How to get the notifications in my External system(AdobeConnect) using salesforce change events or platform events?

I have a custom object called AdobeMeeting__c and platform event Meeting__e. If I did the changes in AdobeMeeting__c object,I need to push the notification to my external system(adobe connect). For ...
1
vote
1answer
64 views

URL doesn't exist in REST api call

I'm trying to subscribing platform event channel through REST. I have executed below code I'm getting the error called "URL doesn't exist". Is there any changes needed in the url format. Please ...
3
votes
0answers
67 views

Platform Event Trigger won't execute in subscriber org but in scratch org

In my Managed Package, I have a trigger for the Platform event Notification__e. The publish behavior is Publish Immediately. When I publish an event via Workbench or Developer console in one of the ...
1
vote
1answer
55 views

Update the last modified user to Automated Process

Is there any way I can update a field on the record through automation to make sure that the last modified user gets updated to automation process user on the record? So, here's our issue, we have ...
1
vote
0answers
9 views

Unable to connect send platform events to Salesforce

Good morning, I'm trying to send Platform Events to salesforce using a Platform app from Azure and I'm receiving that everything it's ok but no other log and not a single platform event was created. ...
1
vote
0answers
38 views

Logic written in Platform Event Trigger doesn't work, but the same logic works from ProcessBuilder

I am using Platform Events, to fire a webservice(HTTP request) call post transaction commit, let us say Once Account is Created or Account Updated. In the process of doing so, I am able to create/...
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 ...
2
votes
1answer
80 views

How to Subscribe to platform Events on Community?

Trying to subscribe to a platform Event channel from community keep failing for me. All is working fine from internal User on a Lightning Record Page but for some reason cannot subscribe to the ...
1
vote
1answer
82 views

Connecting Platform Events to Amazon SQS/SNS [closed]

I have a requirement where I need to subscribe to Salesforce Platform Events via AWS. I did some research and found out that we can do so via Lambda. However Lambda has its own limitations. Is it ...
0
votes
0answers
23 views

Trigger on List of Objects

I need an approach to get notified whenever a Objekt changes. The Objects i want to be notified is configured within a custom Setting. Conditions: No changes on the object itself. Generic approach ...
1
vote
0answers
26 views

Can a Platform Event channel subscription be limited to events with certain properties in LWC?

Looking at using Platform Events to subscribe to particular updates in a Lightning Web Component. A certain LWC component will only be interested in events that relate to that particular component. ...
2
votes
0answers
46 views

Surprising compilation error: “A non foreign key field cannot be referenced in a path expression: ChangeEventHeader”

Why is it that this will not compile: trigger AccountChangeTrigger on AccountChangeEvent (after insert) { String dmlType = Trigger.new[0].ChangeEventHeader.changetype; ... A non foreign ...
1
vote
0answers
20 views

Flow failing when waiting for a platform event

I have designed an auto-launched flow that hits a waiting element and waits until a platform event is published to resume its execution. At the moment it only works if the user has the 'modify all ...
2
votes
1answer
56 views

Platform Event Subscription not working for some users!

I have a generic platform event for Record updates. (RecordChange__e) I am firing that event in apex and subscribing it in an aura component in LEX. It's working fine for me and other System Admins....
3
votes
1answer
48 views

What is the difference between platform events published and delivered?

The reason I ask is because the allocations page states the "delivered" is half what the "published" limit is, which doesn't make sense as we can publish more messages than even a single subscriber ...
1
vote
1answer
48 views

Is Salesforce classed as a consumer of Platform events?

As the title suggests, I would like to know if Salesforce is classed as a CometD subscriber to Platform events? In the documentation it mentions there is 25K message limit divided by subscribers, is ...
0
votes
1answer
29 views

Salesforce Platform Event After Specific Interval

My Use Case - After Every 5 minutes i need to get a token from "X-System" and need to store in salesforce. To Achieve this we implemented batch and scheduler. What Batch and Scheduler Will DO are ...
1
vote
0answers
20 views

All Defined Platform Event Types Both Fail and Succeed Within the Same Hour

I've defined a few platform events to capture changes in a few different object types across my environment, with triggers attached to each event that handle data transformations based on those ...
0
votes
0answers
31 views

Future Method cannot be called from another Future Method

I have a platform event trigger that calls a method in a class that is annotated with @future. This future method makes an external REST api call to get some data and updates values on the ...
0
votes
0answers
87 views

Consuming platform events on AWS

Salesforce and Amazon announced earlier this year there is a partnership to allow easier sync between the two tech stacks. I recall in a YouTube video AWS product engineers will be able to consume ...
0
votes
0answers
30 views

Custom logging with Platform events before API Callout

I'm trying to write custom logs using Platform events into a custom object before API Callout hoping that Platform events would work and will not cause the uncommitted DML before the API Callout. ...
1
vote
0answers
22 views

How to test whether a Platform Event Trigger throws an unhandled exception

Since platform event triggers are run asynchronously, an error in processing them doesn't cause the test method to fail by itself. So, how would I write a test that under certain circumstances, my ...
1
vote
1answer
370 views

LWC - empApi for publishing and subscribing platform event from Lightning web component

I am new to LWC and trying to implement empApi for publishing and subscribing platform event from LWC. Salesforce provided an example on: https://developer.salesforce.com/docs/component-library/...
5
votes
4answers
147 views

Trigger in Managed Package in error state, can't be cleared

I have a Platform Event trigger in my managed package. For some reason, it generated an error on a customer's sandbox, and now it's in error state and won't run. I updated the trigger and pushed the ...
1
vote
1answer
72 views

Unable to subscribe to CDC events in Sandbox

With the example given in the link: Trailhead - Subscribe to Events, I was able to successfullt connect to my DEV org and listen to the change events for both custom and standard objects. However ...
0
votes
0answers
18 views

Salesforce grouping execution flow

Is possible Salesforce be agroupping the Lighting flow execution? We are working with Platform events calling a specific Lightning flow each time it runs, and we noticed the flows are being executed ...
0
votes
1answer
86 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
1answer
70 views

Getting “has established a session, but no BAYEUX_BROWSER cookie present” When Connecting To Platform Events Channel

I am working with this Ruby library (https://github.com/restforce/restforce#streaming) to connect to Salesforce's Platform Events. Here is my code: EM.run do client.subscribe '/event/My_Event', ...
1
vote
1answer
268 views

Platform Event Trigger won't Fire

I have created a Platform Event with some fields, and a trigger for it. I have also created a VF Page and subscribed to that event. From the developer console, I publish an event in this manner. ...
0
votes
1answer
90 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
168 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
19 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
74 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
169 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
85 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
20 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
273 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 ...
9
votes
1answer
254 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
97 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
203 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 ...
5
votes
2answers
299 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
46 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
164 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 ...