Skip to main content

Posts

Showing posts with the label Custom History

Latest Post

How to Set Up Two-Factor Time-Based One-Time Password (TOTP) Authentication on iPhone Without Third-Party Apps

Unlocking an additional layer of safety to your iPhone is less difficult than you might suppose. With Two-Factor Time-Based One-Time Password (TOTP) authentication, you may bolster your device's protection and other website safety without relying on 1/3-party apps. Here's how you could set it up:

Salesforce LWC Code for History Component: Building a Custom History Tracker

Introduction: In this blog post, we will explore how to build a custom history component using Salesforce Lightning Web Components (LWC). The history component will allow you to track and display the historical changes of a record in Salesforce. By the end of this tutorial, you will have a fully functional LWC code that enables you to implement a history tracker in your Salesforce org.

Field History Custom Component

 We have the standard history for our fields in salesforce. We can use that functionality from the related list. Here we will see that functionality using component and apex class. This will be a generic code for custom objects. Just paste the id of the record for which you want to see history. Make sure you have enabled history tracking for that object.  Here is the apex class for JSON. Save this first. HistoryWrapper.cls public class HistoryWrapper{     public WrapperClass_attributes attributes;     public String CreatedById;       public datetime CreatedDate;       public String Field;        public boolean IsDeleted;     public string NewValue;     public string OldValue;     public String Id;        public Wrapperclass_CreatedBy CreatedBy;     public static list<HistoryWrapper> parse(String json){         ret...