function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ayoub Benseghir 13Ayoub Benseghir 13 

Lightning Console - $A.get('e.force:refreshView').fire() not working

Hi everyone,

I have a lightning component that updates some data on a record and then calls $A.get('e.force:refreshView').fire().
In a regular lightning app, the component works fine however, in a lightning console app; the rest of the code works but $A.get('e.force:refreshView').fire() has no effect...

Anybody knows how to solve this?

Shubham Prajapati 19Shubham Prajapati 19
This is an out of the box lightning event which will wrok directly if the container app for your component is i.e. these events can work within Lightning Experience or Salesforce1 only. Also, it'll not work in preview mode as when you view your component in preview mode while developing, the container is not To use it in places other then Lightning experience or SF1, then you have to fire the event using aura:registerEvent or aura:dependency and handle it using aura:handler.