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
Shifs SalheenShifs Salheen 

Rollback Object modification changes

Hello All,
In "View SetUp Audit Trail" we can see a list of things performed on Objects.Is there any provision that how can we rollback these changes.Suppose I have changed the component type of field from Number to Text.Is there any provision to rollback all changes upto specific point.
Vasani ParthVasani Parth
Shifs,

You want to rollback changes to be viewed in "View SetUp Audit Trail" ?
Shifs SalheenShifs Salheen
Yes that is what I exactly want.
Vasani ParthVasani Parth
You cannot rollback changes AFAIK. I'm afraid to know this but there should be a specific reason. If you want see back trails more than 6 months than below is your query,
 
List<SetupAuditTrail> setupTrailhistory= 
[SELECT Id,
    Action,
    CreatedBy.Name,
    CreatedDate,
    Display,
    Section 
 FROM SetupAuditTrail 
 ];