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
Team AppSharkTeam AppShark 

Data updates are not reflected in UI after updating record from LWC using UpdateRecord function.

                // eslint-disable-next-line no-unused-vars
                .then(() => {
                        new ShowToastEvent({
                            title: 'Success',
                            message: 'Record Is Updated',
                            variant: 'Success',
                .catch(error => {
                        new ShowToastEvent({
                            title: 'Error on data save',
                            message: error,
                            variant: 'error',
AnudeepAnudeep (Salesforce Developers) 

Please try adding the following to your code.
/ Display fresh data in the form
                    return refreshApex(;
This line is taken from the example in the following document 

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. Thank You!


Anil Bolisetty 2Anil Bolisetty 2
I have tried like this not good way of doing but it works