Podcast
Questions and Answers
A developer needs to build a responsive application with touch event support for stateful clients as part of a new feature. Which two technologies meet these requirements?
A developer needs to build a responsive application with touch event support for stateful clients as part of a new feature. Which two technologies meet these requirements?
- Visualforce Components
- Aura Components (correct)
- Visualforce Pages
- Lightning Web Components (correct)
A developer is writing a test class for an OpportunityLineItem trigger and needs to access the standard price book in the org. Which method provides access to the price book within the test context?
A developer is writing a test class for an OpportunityLineItem trigger and needs to access the standard price book in the org. Which method provides access to the price book within the test context?
- Use `@IsTest(SeeAllData=true)` and delete the existing standard price book.
- Use `Test.loadData()` and a static resource to load a standard price book.
- Use `@TestVisible` to allow the test method to see the standard price book.
- Use `Test.getStandardPricebookId()` to get the standard price book ID. (correct)
What three steps are required to include a custom Scalable Vector Graphic (SVG) in a Lightning web component?
What three steps are required to include a custom Scalable Vector Graphic (SVG) in a Lightning web component?
- Reference the import in the HTML template.
- Import the static resource and provide a JavaScript property for it. (correct)
- Reference the property in the HTML template. (correct)
- Upload the SVG as a static resource. (correct)
- Import the SVG as a content asset file.
A company wants to automatically create a follow-up Task assigned to the Opportunity Owner whenever an Opportunity is created. What is the most efficient way for a developer to implement this?
A company wants to automatically create a follow-up Task assigned to the Opportunity Owner whenever an Opportunity is created. What is the most efficient way for a developer to implement this?
A Lightning component uses a wired property named searchResults
to store a list of Opportunities. Which Apex method definition is appropriate for wiring to the searchResults
property?
A Lightning component uses a wired property named searchResults
to store a list of Opportunities. Which Apex method definition is appropriate for wiring to the searchResults
property?
A developer is asked to write a trigger that updates a field on the Account object when a related Contact is created or updated. What consideration should be made to avoid exceeding governor limits?
A developer is asked to write a trigger that updates a field on the Account object when a related Contact is created or updated. What consideration should be made to avoid exceeding governor limits?
A developer wants to create a custom user interface in Salesforce to display and interact with data from an external service. Which technology is most suitable for this requirement, considering it has to be responsive and mobile-ready?
A developer wants to create a custom user interface in Salesforce to display and interact with data from an external service. Which technology is most suitable for this requirement, considering it has to be responsive and mobile-ready?
A developer is tasked with implementing a complex validation rule that involves multiple objects and requires real-time feedback to the user. Which approach is best suited to implement such a validation?
A developer is tasked with implementing a complex validation rule that involves multiple objects and requires real-time feedback to the user. Which approach is best suited to implement such a validation?
What are two methods a developer can use to execute tests in an organization?
What are two methods a developer can use to execute tests in an organization?
Universal Containers uses Visualforce pages with a third-party JavaScript framework. They want to update the styling to match Lightning Experience. What's the most efficient approach for a developer?
Universal Containers uses Visualforce pages with a third-party JavaScript framework. They want to update the styling to match Lightning Experience. What's the most efficient approach for a developer?
Universal Containers requires the 'Lead Source' field to be populated upon Lead conversion. What's the best way to ensure this?
Universal Containers requires the 'Lead Source' field to be populated upon Lead conversion. What's the best way to ensure this?
Which annotation makes an Apex method available to be wired to a property in a Lightning web component?
Which annotation makes an Apex method available to be wired to a property in a Lightning web component?
Refer to the following Apex code:
Integer x = 0;
do {
x = 1;
x++;
} while (x < 1);
System.debug(x);
What value of x
is written to the debug log?
Refer to the following Apex code:
Integer x = 0;
do {
x = 1;
x++;
} while (x < 1);
System.debug(x);
What value of x
is written to the debug log?
A developer wants to schedule an Apex class to run every Sunday at 1:00 AM. Which Cron expression should they use?
A developer wants to schedule an Apex class to run every Sunday at 1:00 AM. Which Cron expression should they use?
A company uses a custom object called 'Project__c' to track projects. They want to create a lookup field on the Account object that allows users to associate an Account with a Project. Which approach is most efficient?
A company uses a custom object called 'Project__c' to track projects. They want to create a lookup field on the Account object that allows users to associate an Account with a Project. Which approach is most efficient?
A developer wants to expose an Apex method that searches for Opportunities. Which annotation and method signature should they use to ensure the method is correctly exposed and cacheable?
A developer wants to expose an Apex method that searches for Opportunities. Which annotation and method signature should they use to ensure the method is correctly exposed and cacheable?
Which of the following statements accurately describes the order of execution for DML operations and triggers in Salesforce?
Which of the following statements accurately describes the order of execution for DML operations and triggers in Salesforce?
A developer is creating a utility class named TestUtils
with helper methods for creating test data. How should the developer modify the TestUtils
class to ensure its methods are only accessible to unit test methods?
A developer is creating a utility class named TestUtils
with helper methods for creating test data. How should the developer modify the TestUtils
class to ensure its methods are only accessible to unit test methods?
A developer needs to fix a bug in a Lightning Web Component within a sandbox environment. Which tool is most suitable for directly modifying and testing the component's code?
A developer needs to fix a bug in a Lightning Web Component within a sandbox environment. Which tool is most suitable for directly modifying and testing the component's code?
A developer plans to import 500 Opportunity records into a sandbox environment. Why is Data Loader a more suitable choice than Data Import Wizard for this task?
A developer plans to import 500 Opportunity records into a sandbox environment. Why is Data Loader a more suitable choice than Data Import Wizard for this task?
A company uses Salesforce to track software clients (Accounts) and software bugs (custom object Bug__c
). They want to report on which companies have reported specific bugs, with the ability for a company to report multiple bugs and a bug to be reported by multiple companies. What type of relationship is needed to enable this?
A company uses Salesforce to track software clients (Accounts) and software bugs (custom object Bug__c
). They want to report on which companies have reported specific bugs, with the ability for a company to report multiple bugs and a bug to be reported by multiple companies. What type of relationship is needed to enable this?
A developer needs to update a List<Account>
to mark each account as 'Active' or 'Inactive' based on whether its LastModifiedDate
is older than 90 days. Which Apex technique is most efficient for processing this list?
A developer needs to update a List<Account>
to mark each account as 'Active' or 'Inactive' based on whether its LastModifiedDate
is older than 90 days. Which Apex technique is most efficient for processing this list?
Universal Containers has a Visualforce page with a custom controller that performs complex calculations. They are experiencing View State
errors. To resolve this, what should the developer implement?
Universal Containers has a Visualforce page with a custom controller that performs complex calculations. They are experiencing View State
errors. To resolve this, what should the developer implement?
A developer needs to create a custom user interface for a community to allow external users to log support cases and track their status. Which Salesforce technology is best suited for this purpose?
A developer needs to create a custom user interface for a community to allow external users to log support cases and track their status. Which Salesforce technology is best suited for this purpose?
You need to retrieve the record for the Viridian City Gym and all its associated trainers using SOQL. Which query would accomplish this?
You need to retrieve the record for the Viridian City Gym and all its associated trainers using SOQL. Which query would accomplish this?
What are two key characteristics of formula fields in Salesforce?
What are two key characteristics of formula fields in Salesforce?
When developing an Apex class with custom search functionality launched from a Lightning Web Component, how can you ensure that only records accessible to the currently logged-in user are displayed?
When developing an Apex class with custom search functionality launched from a Lightning Web Component, how can you ensure that only records accessible to the currently logged-in user are displayed?
Which of the following is an example of a polymorphic lookup field in Salesforce?
Which of the following is an example of a polymorphic lookup field in Salesforce?
A developer is using a single custom controller class with a Visualforce Wizard to support creating and editing multiple sObjects. To ensure proper isolation of data and prevent potential security vulnerabilities, what practice should they implement?
A developer is using a single custom controller class with a Visualforce Wizard to support creating and editing multiple sObjects. To ensure proper isolation of data and prevent potential security vulnerabilities, what practice should they implement?
When designing a custom user interface in Salesforce, which approach allows developers to encapsulate related functionality and reuse it across different parts of their application?
When designing a custom user interface in Salesforce, which approach allows developers to encapsulate related functionality and reuse it across different parts of their application?
A developer wants to create a custom button on the Account object that redirects users to an external website, pre-populating certain fields from the Account record into the URL as parameters. Which approach is most suitable for achieving this?
A developer wants to create a custom button on the Account object that redirects users to an external website, pre-populating certain fields from the Account record into the URL as parameters. Which approach is most suitable for achieving this?
A developer is working with the following anonymous block in an environment containing over 10,000 Case records:
List<Case> casesToUpdate = new List<Case>();
for (Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]) {
thisCase.Status = 'working';
casesToUpdate.add(thisCase);
}
try{
Database.update(casesToUpdate, false);
} catch (Exception e) {
System.debug(e.getMessage());
}
What is the most likely outcome regarding governor limits?
A developer is working with the following anonymous block in an environment containing over 10,000 Case records:
List<Case> casesToUpdate = new List<Case>();
for (Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]) {
thisCase.Status = 'working';
casesToUpdate.add(thisCase);
}
try{
Database.update(casesToUpdate, false);
} catch (Exception e) {
System.debug(e.getMessage());
}
What is the most likely outcome regarding governor limits?
A developer has defined the following custom exception:
public class ParityException extends Exception {}
Which two code snippets will successfully throw this custom exception?
A developer has defined the following custom exception:
public class ParityException extends Exception {}
Which two code snippets will successfully throw this custom exception?
Multiple triggers are defined on the same object and event (e.g., multiple before insert
triggers on Account). What determines the order in which these triggers execute?
Multiple triggers are defined on the same object and event (e.g., multiple before insert
triggers on Account). What determines the order in which these triggers execute?
Universal Containers is building a new Lightning Web Component (LWC) for its marketing department. Which of the following are considered key benefits of using the Lightning Component framework for this project?
Universal Containers is building a new Lightning Web Component (LWC) for its marketing department. Which of the following are considered key benefits of using the Lightning Component framework for this project?
Consider the following Apex statement:
Account myAccount = [SELECT Id, Name FROM Account];
If the SOQL query returns more than one Account record, what will happen?
Consider the following Apex statement:
Account myAccount = [SELECT Id, Name FROM Account];
If the SOQL query returns more than one Account record, what will happen?
A developer wants to create a custom button on the Account object that calls an Apex method to perform a complex calculation. The calculation result should then be displayed to the user without redirecting them to a different page. What is the most suitable approach to achieve this?
A developer wants to create a custom button on the Account object that calls an Apex method to perform a complex calculation. The calculation result should then be displayed to the user without redirecting them to a different page. What is the most suitable approach to achieve this?
A developer needs to write a test class for a method that sends an email using Messaging.sendEmail
. How can the developer ensure that the email is not actually sent during the test execution while still covering the email sending logic in the test?
A developer needs to write a test class for a method that sends an email using Messaging.sendEmail
. How can the developer ensure that the email is not actually sent during the test execution while still covering the email sending logic in the test?
A developer is tasked with implementing a custom search functionality that allows users to search across multiple objects (Account, Contact, Opportunity) using a single search term. Which approach is most efficient for implementing this requirement?
A developer is tasked with implementing a custom search functionality that allows users to search across multiple objects (Account, Contact, Opportunity) using a single search term. Which approach is most efficient for implementing this requirement?
A developer needs to implement complex validation involving multiple objects when a Save button is pressed on a Visualforce page, and then redirect the user to another Visualforce page upon successful validation. Which approach is most suitable?
A developer needs to implement complex validation involving multiple objects when a Save button is pressed on a Visualforce page, and then redirect the user to another Visualforce page upon successful validation. Which approach is most suitable?
After running all tests in Salesforce, how can a developer check the code coverage of a specific Apex class?
After running all tests in Salesforce, how can a developer check the code coverage of a specific Apex class?
An ISV partner wants to ensure that the calculateBodyFat()
method in their BodyFat
Apex class is accessible to subscribers outside of their managed package namespace. What access modifiers should they use?
An ISV partner wants to ensure that the calculateBodyFat()
method in their BodyFat
Apex class is accessible to subscribers outside of their managed package namespace. What access modifiers should they use?
Which two statements are true regarding Lightning Web Component (LWC) custom events?
Which two statements are true regarding Lightning Web Component (LWC) custom events?
A developer is tasked with creating a Lightning Web Component that displays a list of recently viewed records. Which Salesforce feature is most suitable for efficiently retrieving this data?
A developer is tasked with creating a Lightning Web Component that displays a list of recently viewed records. Which Salesforce feature is most suitable for efficiently retrieving this data?
A developer is building a custom Lightning component that needs to interact with a third-party API. The API requires authentication using OAuth 2.0. Which approach is the most secure and maintainable for storing and managing the API credentials?
A developer is building a custom Lightning component that needs to interact with a third-party API. The API requires authentication using OAuth 2.0. Which approach is the most secure and maintainable for storing and managing the API credentials?
A developer wants to create a Visualforce page that allows users to upload files directly to Salesforce. Which component is best suited for this task?
A developer wants to create a Visualforce page that allows users to upload files directly to Salesforce. Which component is best suited for this task?
A developer has an Apex class that performs complex calculations. They want to ensure that this class is only executed by users with a specific profile. What is the most effective way to enforce this restriction?
A developer has an Apex class that performs complex calculations. They want to ensure that this class is only executed by users with a specific profile. What is the most effective way to enforce this restriction?
Flashcards
Responsive App Technologies
Responsive App Technologies
Frameworks supporting touch events on stateful clients: Aura Components and Lightning Web Components.
Accessing Standard Price Book in Test Class
Accessing Standard Price Book in Test Class
Test.getStandardPricebookId()
provides access to the standard price book ID within a test class.
Using Custom SVG in LWC
Using Custom SVG in LWC
To use a custom SVG in an LWC: 1. Upload as a static resource. 2. Import the static resource in JavaScript. 3. Reference the imported property in the HTML template.
Efficient Task Creation
Efficient Task Creation
Signup and view all the flashcards
Apex Method for Wired Property
Apex Method for Wired Property
Signup and view all the flashcards
@AuraEnabled Annotation
@AuraEnabled Annotation
Signup and view all the flashcards
@IsTest Annotation
@IsTest Annotation
Signup and view all the flashcards
TestUtils Class
TestUtils Class
Signup and view all the flashcards
VS Code
VS Code
Signup and view all the flashcards
Data Loader
Data Loader
Signup and view all the flashcards
Junction Object
Junction Object
Signup and view all the flashcards
Why use a Junction object?
Why use a Junction object?
Signup and view all the flashcards
DML Governor Limit
DML Governor Limit
Signup and view all the flashcards
Firing Apex Exception
Firing Apex Exception
Signup and view all the flashcards
Trigger Execution Order
Trigger Execution Order
Signup and view all the flashcards
LWC Benefits
LWC Benefits
Signup and view all the flashcards
Single SOQL Query Results
Single SOQL Query Results
Signup and view all the flashcards
Developer Console and Tooling API
Developer Console and Tooling API
Signup and view all the flashcards
Salesforce Lightning Design System (SLDS) CSS
Salesforce Lightning Design System (SLDS) CSS
Signup and view all the flashcards
Lead Conversion field mapping.
Lead Conversion field mapping.
Signup and view all the flashcards
@AuraEnabled(cacheable=true)
@AuraEnabled(cacheable=true)
Signup and view all the flashcards
Value of x after do-while loop
Value of x after do-while loop
Signup and view all the flashcards
SOQL for Gym and Trainers
SOQL for Gym and Trainers
Signup and view all the flashcards
Formulas Characteristics
Formulas Characteristics
Signup and view all the flashcards
Apex Sharing Keyword
Apex Sharing Keyword
Signup and view all the flashcards
WITH SECURITY ENFORCED
WITH SECURITY ENFORCED
Signup and view all the flashcards
Polymorphic Lookup Field
Polymorphic Lookup Field
Signup and view all the flashcards
WhatId Field on Event
WhatId Field on Event
Signup and view all the flashcards
aura:flow tag
aura:flow tag
Signup and view all the flashcards
lightning:flow tag
lightning:flow tag
Signup and view all the flashcards
Custom Controller/Extension Use Case
Custom Controller/Extension Use Case
Signup and view all the flashcards
Apex Code Coverage Location
Apex Code Coverage Location
Signup and view all the flashcards
ISV Package Access
ISV Package Access
Signup and view all the flashcards
LWC Custom Event Propagation and Data
LWC Custom Event Propagation and Data
Signup and view all the flashcards
Signup and view all the flashcards
action attribute in apex:commandButton
action attribute in apex:commandButton
Signup and view all the flashcards
value attribute in apex:commandButton
value attribute in apex:commandButton
Signup and view all the flashcards
Visualforce Standard Controller
Visualforce Standard Controller
Signup and view all the flashcards
Study Notes
Streamlining Picklist Maintenance
- To streamline maintenance and restrict values for picklists with common values across multiple objects, use a Global Picklist Value Set containing the values, creating the Picklist on each object.
Troubleshooting Query Performance
- Use the Developer Console to troubleshoot query performance issues when a custom page loads slowly.
Building Responsive Applications
- Aura Components and Lightning Web Components are built on frameworks that fully support the business requirement of a responsive application capable of responding to touch events executed on stateful clients.
Accessing the Standard Price Book in Tests
- Use
Test.getStandardPricebookId()
to get the standard price book ID when writing a test class that covers anOpportunityLineItem
trigger to get access to the standard price book in the org.
Including Scalable Vector Graphics (SVG) in Lightning Web Components
- Import the static resource and provide a JavaScript property for it to include a custom Scalable Vector Graphic (SVG).
- Reference the resulting import in the HTML template.
- Reference the property in the HTML template.
Implementing New Processes for Opportunity Creation
- The most efficient way to implement a new process where a follow-up
Task
is created and assigned to theOpportunity
Owner every time anOpportunity
is created is by using a record-triggered flow on theOpportunity
.
Defining Apex Methods for Wired Properties
- To make an Apex method available to a Lightning component using a wired property, use the
@AuraEnabled(cacheable=true)
annotation along withpublic static List<Opportunity> search (String term)
.
Making TestUtils Methods Usable in Unit Tests
- Add
@IsTest
above line 01 to ensure the methods are only usable by unit test methods for creating test data for unit tests.
Fixing Lightning Web Component Bugs
- Use VS Code to fix a Lightning web component bug in a sandbox.
Choosing Data Loader vs. Data Import Wizard
- When importing 500 records into a sandbox an advantage of Data Loader is that the Data Import Wizard cannot import all 500 records.
Reporting on Companies and Bugs
- To report on which companies have reported which bugs, where each company can report multiple bugs and bugs can be reported by multiple companies, use a junction object between
Bug__c
andAccount
.
Updating Account Status Based on Last Modified Date
- Utilizing a
for
loop with anif
orif/else
statement inside is appropriate when marking eachAccount
in aList<Account>
as either Active or Inactive based on theLastModifiedDate
field being greater than 90 days in the past.
Ensuring Transaction Control and Avoiding Governor Limits
- ImplementÂ
Database.Savepoint
 to enforce database integrity and use theÂSystem.Limit
 class to monitor the current CPU governor limit consumption for ensuring transaction control.
Inserting Records with Partial Success
- If some records in a list of records fail to insert, use theÂ
Database.insert(records, false)
statement to allow successful inserts.
Relationship Implementation for Order Requirements
- To meet requirements such as calculating the total amount on an Order, calculating the line amount for each Line Item, and moving Line Items to a different Order if they are out of stock, Line Item should have a re-parentable master-detail field to Order.
Implementing Interfaces in Apex
- Interfaces in Salesforce must be implemented, not extended
- correct example implementation
public class DrawList implements Sortable, implements Drawable {
public void sort() { /*implementation*/ }
public void draw() { /*implementation*/ }
}
Preventing SOQL Injection Attacks
- Use the
escapeSingleQuotes
method to sanitize the parameter before its use to prevent SOQL injection attacks. - Use variable binding and replace the dynamic query with a static SOQL.
Actions Causing Triggers to Fire
- Triggers can be invoked by cascading delete operations.
- Triggers are invoked by updates to FeedItem.
Phases in Aura Application Event Framework
- Bubble and Capture are phases in Auras’ application event propagation framework.
Checking Test Coverage of Autolaunched Flows
- Use the Code Coverage Setup page to check the test coverage of autolaunched Flows before deploying them in a change set.
Considerations for Sandbox to Production Deployment
- All triggers must have at least line of test coverage.
- At least 75% code must be covered by unit tests.
Handling Over 10,000 Case Records in Anonymous Block
- Due to exceeding the governor limit the transaction will fail.
Firing Custom Exceptions in Apex
- Methods to fire a custom exception in Apex:
- throw new ParityException('parity does not match');
- throw new ParityException();
Trigger Execution Order
- Trigger execution order cannot be guaranteed when triggers are associated with the same object and event.
Benefits of Lightning Component Framework
- Easy integration with third-party libraries is a benefit.
SOQL Query Results
- When a SOQL query returns more than one
Account
in the Apex statementAccount myAccount = [SELECT Id, Name FROM Account];
, an unhandled exception is thrown, and the code terminates.
Executing Tests in an Org
- Tests can be executed in an org through:
- Developer Console
- Tooling API
Styling Visualforce Pages for Lightning Experience
- Ensure the custom application's Visualforce pages enable Available for Lightning Experience, Lightning Communities, and the mobile app option when aligning the styling of a third-party framework with Lightning Experience.
Populating Lead Source Field
- Use a validation rule when the sales management team at Universal Containers requires the Lead Source field of the Lead to be populated when a Lead is converted.
Annotation to Wire to a Property in LWC
@AuraEnabled(cacheable=true)
must be used on an Apex method to make it available to be wired to a property in a Lightning web component.
Value of x in Debug Log
- x =2 per the Apex code provided.
Possible Apex Transaction Governor Limit
- Total number of records retrieved by SOQL queries is reached.
Preventing Opportunity Status Changes
- The most efficient automation to prevent changes is using an error condition formula on a validation rule on Opportunity.
LWC Property Using getAccounts Method
@wire(getAccounts, { searchTerm: '$searchTerm' }) accountList;
is the correct definition of a Lightning Web Component property that uses the get Account
s method.
Implementing Trigger Logic
- To prevent the creation of
Request__c
records when certain conditions exist, the trigger logic should be implemented in abefore insert
trigger:trigger RequestTrigger on Request__c (before insert) { RequestLogic.validateRecords(trigger.new); }
Requirements for service agent to gather customer information for a credit card company
- The most efficient way for a developer is to implement a Screen-based flow when service agent must gather many pieces of customer's information.
Visualforce Markup for displaying page messages via the ApexPages.addMessage()
Method
- The component to be added to the Visualforce page to display the messages is
<apex:pageMessages />
Validating new leads
- To add an additional validation layer using automation while ensuring an email address is valid, use a before save trigger to valdate email and display error.
Practices for Salesforce Execution Multi-tenancy
- Avoid performing queries inside for loops.
Lightning Web Component Availability Steps
- Set
isExposed
totrue
in the associatedjs-meta.xml
file; - Add
<target>lightning_RecordPage</target>
to the file
Retreive Gym and Trainer Records With Single Query
SELECT Id, (SELECT ID FROM Trainers_r) FROM Gym
WHERE Name = 'Viridian City Gym'
Two Characteristics Related to Formulas
- Formulas are calculated at runtime and are not stored in the database.
- Formulas can reference values in related objects.
Enforcing Record Access in Apex Classes
- The
WITH SECURITY_ENFORCED
clause is used within the SOQL query to ensure data accessibility.
Polymorphic Lookup Field
- The
WhatId
field on the standardEvent
object is a polymorphic lookup field in Salesforce.
Displaying Flows in Aura Components
- Use
<lightning:flow>
tag to display the flow in the Aura Component.
Testing a Custom Controller
- Useful statements include
Test.setCurrentPage (pageRef);
ApexPages.currentPage().getParameters().put('input', 'TestValue');
String nextPage = controller.save().getUrl();
Automation for Dev Teams
- The UCÂ development team should useÂ
Salesforce CLI
 to automatically run tests as part of their CI process.
Code Snippets for Business Logic:
- Constant values must be static final decimals
static final decimal DELIVERY_MULTIPLIER = 4.15;
SOQL Injection Safe
- Assuming
name
as aString
, the SOQL queryString query = 'SELECT Id FROM Account WHERE Name LIKE \'' + String.escapeSingleQuotes(name) + '\'';
in Visualforce is safe from SOQL injection.
Developer Uses Controller
- To perform a complex validation that involves multiple objects and redirect upon success.A controller extension best meets this business requirement.
Checking Code Coverage
- After running all tests, to check the code coverage of a class, view the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.
Ensuring Accessibility of Apex Method in Managed Package
- To ensure the
calculateBodyFat()
method is accessible outside the ISV's package namespace, declare the class asglobal
and use theÂpublic
 access modifier on the method.
Characteristics of Lightning and Web Components
- Data may be passed in the payload of a custom event using a property calledÂ
detail
. - By default, a custom event only propagates to its immediate container.
Debugging Triggers
- It is most appropriate to add
system.debug
statements to the code to track the execution flow and identity the issue that is causing records to be trigger duplicated.
Backing Up SalesForce Records
- Define aÂ
Data Export
 scheduled job.
Run Deployment Script Via
SFDX CLI and VSCode are tools to run the deployment script to sandbox.
Finding User Type
Opportunity.SObjectType.getDescribe().getRecordTypeInfos()
Sharing Case Defect
- Share the parent Case and Defect_c records. Sharing only Case_Defect_c will not share the parent.
Universal Containers
- The correct way to perform a
HTTP REST
callout and expose the component on the Opportunity detail page is to create anafter update
trigger that initiates anÂ@future
 method usingÂcallout=true
, alongside a customVisualforce
 quick action that leads to a visual force quick action.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.