A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank.
Which automation allows the developer to satisfy this requirement in the most efficient manner?
A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet:
Public class CustomerOrder {
//code implementation
}
How can a developer use the OrderRequest class within the CustomerOrder class?
Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?
A developer created a Lightning web component called statuscomponent to be Inserted into the Account record page.
Which two things should the developer do to make this component available?
Choose 2 answers
The following Apex method is part of the ContactService class that is called from a trigger:
How should the developer modify the code to ensure best practices are met?
A)
B)
C)
D)
What are two benefits of using External IDs?
Choose 2 answers
Which two characteristics are true for Lightning Web Component custom events?
Choose 2 answers
Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1, 000,000. A developer created the following trigger on the Account object to satisfy this requirement.
for (Account a : Trigger.new) {
if (a.AnnualRevenue > 1000000) {
List
if (oppList.size() == 0) {
Opportunity oppty = new Opportunity(Name = a.Name, StageName = 'Prospecting', CloseDate = System.today().addDays(30));
insert oppty;
}
}
}
Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, it fails with system, Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2. answers
Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.
What can the developer use to accomplish this?
What should a developer do to check the code coverage of a class after running all tests?