Question 46
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end 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?
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?
Question 47
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
List <Contact> contactList = new List <Contact>();
List <Contact> contactList = new List <Contact>();
Question 48
A developer has created the following trigger: trigger ProcessDoNotCall on Contact (after update) { List<Contact> lstCon = [SELECT Id, DoNotCall, Department FROM Contact WHERE Department = 'HR' AND Id IN :Trigger.new]; for(Contact c : lstCon) c.DoNotCall= true; update lstCon; } The developer executes the following code anonymously in the Developer Console. Assume that the record exists in Salesforce.
Contact con = new Contact(Id='003oOOOOOOVHXOm',Department = 'HR') update con; Which behavior will the developer observe?
Contact con = new Contact(Id='003oOOOOOOVHXOm',Department = 'HR') update con; Which behavior will the developer observe?
Question 49
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired.
What is the optimal way to accomplish this?
What is the optimal way to accomplish this?
Question 50
The "Webservice" keyword __________.