What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules....

June 4, 2021 No Comments READ MORE +

Which two methods should the developer implement to fulfill the business requirement?

Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow ✑ Name...

June 4, 2021 No Comments READ MORE +

Which approach should the developer to meet this requirement?

A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record. Which approach should the developer to meet this requirement?A . A custom controllerB . A custom controller extensionC . Visualforce page JavaScriptD . Standard controller methodsView AnswerAnswer: A

June 3, 2021 No Comments READ MORE +

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?A . Schema.sObjectType.Account.isDeletable()B ....

June 3, 2021 No Comments READ MORE +

Which three should be considered for building out the business logic layer of the application?

A developer of Universal Containers is tasked with implementing a new Salesforce application that must be able to by their company's Salesforce administrator. Which three should be considered for building out the business logic layer of the application? Choose 3 answersA . WorkflowsB . validation RulesC . Process BuilderD ....

June 3, 2021 No Comments READ MORE +

Which technique should be implemented to avoid reaching the governor limit?

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; }...

June 3, 2021 No Comments READ MORE +

How can the developer make sure that validation rule violations are displayed?

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?A . Add cuatom controller attributes to display the message.B . Include <apex:message> on...

June 2, 2021 No Comments READ MORE +

Which three features satisfy this use case?

A developer wants to invoke on outbound message when a record meets a specific criteria. Which three features satisfy this use case? Choose 3 answerA . Approval Process has the capacity to check the record criteria and send an outbound message without Apex CodeB . Process builder can be used...

June 2, 2021 No Comments READ MORE +

Why did the test method fail in the sandbox and pass in the Developer Console?

A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test...

June 2, 2021 No Comments READ MORE +

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answersA . A method using the @InvocableMethod annotation must define a return value.B . A method using the @InvocableMethod annotation can have multiple input parameters.C . A method using the @InvocableMethod annotation must be declared as staticD...

June 2, 2021 No Comments READ MORE +