Is there a mechanism to subscribe to platform events from a flow 'and' pass attributes to a lightning component - when a new event is delivered (basically synchronously). Already have tried the normal EMP API in Lightning components, however hitting Platform event daily delivered limits. The use case is - when a new record on a custom object is created - we want to get a notification on a custom lightning component.
-
Then I guess it's time to upgrade, contact Salesforce.– itzmukeshy7Commented Jul 6, 2021 at 16:53
-
the max even after update is 150K– KLabCommented Jul 6, 2021 at 16:55
-
1Are we really creating this many records, else a code review can highlight the issues.– itzmukeshy7Commented Jul 6, 2021 at 16:57
Add a comment
|
1 Answer
Are you sure that you will exceed standard PE limits?
If you need to increase the PE or DC limit you can contact salesforce ask for an additional license cost.
If you can afford 2 to 3 min of delay you can try asynchronous schedule apex call based on the last created date. A simple js timer function can help.
-
Cannot increase more limits sadly. This needs to be near real time. A record gets created (quire frequently), the aura component must get a notification. Hence used Platform events and EMP API in the first place– KLabCommented Jul 6, 2021 at 21:10
-
then I am afraid salesforce is not the right platform to do this, or you can wait to build a salesforce function which is in beta right now.– RagulCommented Jul 7, 2021 at 5:10