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
mxravimxravi 

Need Help in accessing Field History for Disposition

I was trying to access field history from the opportunityfieldhistory object for the field name StageName. It is not pulling up any records which is weird. Am I doing anything wrong?

 

Thank You

 

Mrudula Ravindran

Best Answer chosen by Admin (Salesforce Developers) 
mxravimxravi

I need to revert back the changes made to stagename. I found a way. We can use 'to stage' and 'from stage' fields in the opportunity history table and use data loader to revert the changes. 

 

Thanks for the help!!! 

 

Mrudula Ravindran

All Answers

sfdcfoxsfdcfox

StageName is a special field and therefore plays by its own rules. You won't find it in OpportunityFieldHistory (this is for custom tracking), but instead one called OpportunityHistory. Take a look at the API docs for details on this object.

mxravimxravi

I need to revert back the changes made to stagename. I found a way. We can use 'to stage' and 'from stage' fields in the opportunity history table and use data loader to revert the changes. 

 

Thanks for the help!!! 

 

Mrudula Ravindran

This was selected as the best answer