0

I am new to Salesforce Platform event and streaming API topics. After riffling through some documentation and getting enough confused, asking out for help here if anyone can suggest me the best approach for my use case.

On the opportunity lightning detail page, we want to embed various lightning components and wants data to be updated on one more lightning components based on an event on the other component in Opportunity details page. Hope my questions is clear.

3

1 Answer 1

2

On the opportunity lightning detail page, we want to embed various lightning components and wants data to be updated on one more lightning components based on an event on the other component in Opportunity details page.

If this is what you are looking for, then you don't really need Platform Event or Streaming API here. You can incorporate this just by using Application Events. So one of your component fires the event and other components handle that event thus refreshing their data.

Or even simpler, once you know the processing is complete in your component and that data has been updated in the backend and that your other components can be refreshed to reflect that data, you can just use force:refreshView to refresh the whole view.

4
  • Spot on. I was about to answer same Feb 22, 2019 at 18:37
  • @PranayJaiswal reminds me of "great minds think alike " ;)
    – Jayant Das
    Feb 22, 2019 at 18:38
  • @JayantDas are application event valid when we hv to pass data between different lightning applications? Feb 25, 2019 at 14:34
  • @ShivaAchukatla based on the format of SFSE, your question categorizes as a new question. Also I am not really sure about this, because I would think application events are handled by the framework within a single app and not cross app.
    – Jayant Das
    Feb 25, 2019 at 15:19

You must log in to answer this question.

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