Want to pass your Programmatic Development using Apex and Visualforce in Lightning DEX-450 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
A developer created a helper class with a method that can be called from Visualforce pages, web services, triggers, and of even anonymous code. When the method is called from a trigger, the developer needs to execute logic that should not be executed If the method Is called from anywhere else. How can the developer determine if the code Is executed in a trigger context?
A. Check if System.executionContext =='Trigger'.
B. Use the executeOnTrigger annotation on the method definition.
C. Check if Trigger.isExecuting ==true
D. Check if Trigger.newMap !=null.
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the
A. StandardController
B. Extensions
C. Action
D. Controller
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?
A. Before delete
B. After undelete
C. After delete
D. Before undelete