You need to sign in to do that
Don't have an account?
Bertrand DB
Refresh related list when creating a child record
Hello,
I have a simple Process Builder that is triggered when an opportunity is edited as closed-won: it will create a contract linked to the same account.
Do you have any idea how to make this better?
I noted that if I do in the browser console a $A.get("e.force:refreshView").fire(); it correctly refresh the list and shows the contract.
Thanks in advance for your ideas!
I have a simple Process Builder that is triggered when an opportunity is edited as closed-won: it will create a contract linked to the same account.
- The user is on the opportunity record, set it as "Closed Won".
- Then, he clicks on the Account Name and sees the related list.
- The contract created via Process Builder isn't there. We need either to manually refresh the page, or to click on the Contract related list to see it.
Do you have any idea how to make this better?
I noted that if I do in the browser console a $A.get("e.force:refreshView").fire(); it correctly refresh the list and shows the contract.
Thanks in advance for your ideas!
It is a known issue to salesforce.After modifying data, you should tell the standard components to refresh the data. You do this by using force:refreshView.
Refer below thread.
https://developer.salesforce.com/forums/?id=9060G0000005Vm7QAE
https://salesforce.stackexchange.com/questions/192723/refresh-standard-related-lists-from-custom-component-in-lightning
https://www.forcetalks.com/salesforce-topic/unable-to-see-the-inserted-record-without-refreshing-the-detail-page-of-a-salesforce-opportunity/
Best Regards,
Sandhya
The problem is that I have no place where I can put force:refreshView as I don't use a custom lightning component.
Litteraly, I just update my opportunity from the standard screens.Then I go to the account record page and I need to manually refresh this page to see the contract record created via process builder (triggered by the update of the Opportunity).
During all these processes, I don't use any Lightning Component.