Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

 To allow an Apex ethod to be used in an LWC, you annotate it with

the @AuraEnabled annotation. You can import the @AuraEnabled method to LWC
as a function (shown in line 2). When used with the @wire decorator (line 8), the
component retrieves data via the method.

Wiring client-side to the backend Apex data service is simplified with the
JavaScript decorators (example, @wire decorator we used in the code above)
and built-in modules (@salesforce/apex).

Compact layouts control which fields your users see in the highlights panel at the top
of a record.

Customize Related Lists


1. Object Manager, then find and click Energy Audit in the list of objects.
2. Click Page Layouts, then Energy Audit Layout.
3. In the palette, click Related Lists, and drag the Files element down to the
Related Lists section. Activate the Page

Figure Error! No text of specified style in document..1 List button

Trigger.new contains all the records that were inserted in insert or update triggers

Trigger.old provides the old version of sObjects before they were updated in update
triggers, or a list of deleted sObjects in delete triggers
Figure Error! No text of specified style in document..2 custom detail page link

Figure Error! No text of specified style in document..3 Custom Detail Page Button

There are three primary types of custom buttons and links that you can create.

 List button—Appears on a related list on an object record page.


 Detail page link—Appears in the Links section of the record details on an
object record page.
 Detail page button—Appears in the action menu in the highlights panel of a
record page.

Every record in Salesforce is natively represented as an sObject in Apex

The Account sObject is an abstraction of the account record and holds the account field
information in memory as an object.

Create and modify records in Salesforce by using the Data Manipulation Language,
abbreviated as DML. DML provides a straightforward way to manage records by providing
simple statements to insert, update, merge, delete, and restore records.

The upsert statement matches the sObjects with existing records by comparing values of
one field. If you don’t specify a field when calling this statement, the upsert statement uses
the sObject’s ID to match the sObject with existing records in Salesforce.
LATER:
APEX TRIGGER
LWC

You might also like