You need to sign in to do that
Don't have an account?
sesha boddapati
how to track field history in lwc
Hi All,
How to track field history in lightning web components.
Thanks, Sesha
How to track field history in lightning web components.
Thanks, 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
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,
I have tried the above scenario,But the values are not populating, Kindly help me on this.
Thanks
Sindhu