You need to sign in to do that
Don't have an account?
Tiwari Vedant
Refresh custom lightning component when file is attach to record from 'Files' related list
I want to refresh custom lightning component when file is attach to record from 'Files' related list.
Please suggest how to achieve the same.
Please suggest how to achieve the same.
You need to refresh the tab by using event="force:refreshView" in component. In JSController, you need to fire this event in order to refresh the tab after your file gets uploaded.
Review below link on usage of 'force:refreshView'
https://developer.salesforce.com/docs/component-library/bundle/force:refreshView/documentation
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar