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. Jul 6 at 16:53
  • the max even after update is 150K
    – KLab
    Jul 6 at 16:55
  • 1
    Are we really creating this many records, else a code review can highlight the issues. Jul 6 at 16:57

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
    – KLab
    Jul 6 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
    Jul 7 at 5:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.