Which code block will accurately meet the business requirements?

A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active', and Accounts with the type set to 'Prospect' should have a status of 'Pending'. No other changes...

June 9, 2020 No Comments READ MORE +

What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?A . Use the Database.Delete method if the Contact insertion fails.B . Use...

June 8, 2020 No Comments READ MORE +

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?A . Use the Schema namespace.B . Use a static resource.C . Perform a callout to the Metadata APE . Perform a SOQL Query.View AnswerAnswer: A

June 8, 2020 No Comments READ MORE +

What is the optimal method to implement this?

A company processes Orders within their Salesforce instance. When an Order’s status changes to 'Paid' it must notify the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the optimal method to implement this?A ....

June 8, 2020 No Comments READ MORE +

Which two of the examples above have correct System.debug statements? (Choose two.)

Which two of the examples above have correct System.debug statements? (Choose two.) Example 1: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug('Campaign ID' + ar.get('CampaignId')); System.debug('Average amount' + ar.get('expr0')); } Example 2: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage FROM...

June 8, 2020 No Comments READ MORE +

Which design resource configuration should be used?

A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?A . <design:component label="Account FS Component"> <design:attribute name="fieldSetName" Label="Field Set Name" /> <sfdc:objects> <sfdc:object>FieldSet</sfdc:object> </sfdc:objects> </design:component>B...

June 8, 2020 No Comments READ MORE +

Which two statements are true regarding these issues and resolution?

A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that...

June 8, 2020 No Comments READ MORE +

Which scenario necessitates that the callout be made in an @future method?

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?A . The callouts will be made in an Apex Trigger.B . The callouts will be made in an Apex Test class.C . The callout...

June 7, 2020 No Comments READ MORE +

What is the optimal way to accomplish this?

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...

June 7, 2020 No Comments READ MORE +

Which strategy can a developer use to improve the performance?

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?A . Use Javascript to move data processing to the browser instead of the controller.B . Use the transient keywords for the List variables used in the...

June 7, 2020 No Comments READ MORE +