Salesforce PDII Question Answer
An Apex trigger creates a Contract record every time an Opportunity record is
marked as Closed and Won. This trigger is working great, except (due to a recent
acquisition) historical Opportunity records need to be loaded into the Salesforce
instance.
When a test batch of records are loaded, the Apex trigger creates Contract records.
A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
‘What is the most extendable way to update the Apex trigger to accomplish this?