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
Amack DawgAmack Dawg 

Edit Opportunity History records

Hi there, I am trying to update existing Opportunity History records by migrating them to a new Opportunity through the Salesforce API, does anyone know of a way to achieve this?

Salesforce is rejecting my Update operation where I attempt to change the OpportunityId value to the Opportunity I am attempting to migrate the values to. I also have 'Set Audit Fields upon Record Creation' and 'Modify All Data' permissions for the user I am attempting this operation for
Amack DawgAmack Dawg
Quick followup: I attempted to Insert the Opportunity History records as net-new records associated to the intended Opportunity, but I got the usual "  The following fields are not createable members of the target table: Amount, CloseDate, CreatedById, CreatedDate, ExpectedRevenue, ForecastCategory, OpportunityId, Probability, StageName"

Would appreciate any insight here! Hard to believe SFDC wouldn't enable you to migrate Historical/Audit data around!