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.

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.

  • Spot on. I was about to answer same – Pranay Jaiswal Feb 22 '19 at 18:37
  • @PranayJaiswal reminds me of "great minds think alike " ;) – Jayant Das Feb 22 '19 at 18:38
  • @JayantDas are application event valid when we hv to pass data between different lightning applications? – Shiva Achukatla Feb 25 '19 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 '19 at 15:19

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.