0

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.

3
  • Then I guess it's time to upgrade, contact Salesforce. Commented Jul 6, 2021 at 16:53
  • the max even after update is 150K
    – KLab
    Commented Jul 6, 2021 at 16:55
  • 1
    Are we really creating this many records, else a code review can highlight the issues. Commented Jul 6, 2021 at 16:57

1 Answer 1

0

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.

2
  • 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
    – KLab
    Commented 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.
    – Ragul
    Commented Jul 7, 2021 at 5:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .