Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 8w52ceb345

An Apex trigger creates a Contract record every time an Opportunity record ismarked as Closed...

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?

A.

Add the Profile ID of the user who loads the data to the trigger, so the trigger will not fire for this user.

B.

Add a validation rule to the Contract to prevent Contract creation by the user who loads the data.

C.

Use a hierarchy custom setting to skip executing the logic inside the trigger for the user who loads the data.

D.

Use a list custom setting ta disable the trigger for the user who loads the data.

PDII PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now PDII pdf
Get 60% Discount on All Products, Use Coupon: "8w52ceb345"