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
sesha boddapatisesha boddapati 

how to track field history in lwc

Hi All,

How to track field history in lightning web components.

Thanks, Sesha
Best Answer chosen by sesha boddapati
Ikbal HalakeriIkbal Halakeri
Hi Sesha,

Tracking the field history is same as enabling the field history for custom objects in the object’s management settings, nothing difference for LWC. If you want to show the field tracking history on LWC, you have to query on custom object, like SELECT Id, Name, (Select OldValue, NewValue From My_Custom_Object__History) FROM My_Custom_Object__c, then you can show these data into your LWC.
If this answer is not fulfil your requirement, please elaborate the requirement. Happy to help you.

Thank you,

 

All Answers

Ikbal HalakeriIkbal Halakeri
Hi Sesha,

Tracking the field history is same as enabling the field history for custom objects in the object’s management settings, nothing difference for LWC. If you want to show the field tracking history on LWC, you have to query on custom object, like SELECT Id, Name, (Select OldValue, NewValue From My_Custom_Object__History) FROM My_Custom_Object__c, then you can show these data into your LWC.
If this answer is not fulfil your requirement, please elaborate the requirement. Happy to help you.

Thank you,

 
This was selected as the best answer
joan Davisjoan Davis
When students seek our Nursing Research Paper Writing Services (https://researchpapers247.com/nursing-research-papers-service/) from us, they are assured to receive the best Custom Nursing Writing Services (https://researchpapers247.com/nursing-research-papers-service/) that meets all their writing needs and Professional Nursing Writing Services (https://researchpapers247.com/nursing-research-papers-service/) one that has been written following all the instructions. 
sesha boddapatisesha boddapati
Thanks.. Ikbal
sindhu yandrasindhu yandra
Hi @ikbal
I have tried the above scenario,But the values are not populating, Kindly help me on this.

Thanks
Sindhu