Salesforce Platform Developer I Certification Guide
Jan Vandevelde Gunther Roskams更新时间:2021-08-20 10:03:07
最新章节:Leave a review - let other readers know what you thinkcoverpage
Title Page
Copyright and Credits
Salesforce Platform Developer I Certification Guide
About Packt
Why subscribe?
Packt.com
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Code in Action
Conventions used
Get in touch
Reviews
Section 1: Fundamentals Data Modeling and Management
Salesforce Fundamentals
Considerations when developing in a multi-tenant environment
What is multi-tenancy?
The MVC paradigm
The core CRM objects
Leads
Accounts
Contacts
Opportunities
Extending an application's capabilities using AppExchange
Common use cases for declarative customization
Objects and fields
Formula fields
Rollup summary fields
Validation rules
WFR
Approval processes
The Process Builder
Lightning flow
Summary
Quiz
Understanding Data Modeling and Management
Data modeling
Creating an app
Creating custom objects and custom fields
Creating records
Relationship types
Creating relationships
Schema design and modification impact on Apex development
Visualizing and creating entity relationships
Creating objects and fields with Schema Builder
Modifying page layouts through the App Builder
Adding and moving fields on the layout
Adding and removing Related Lists to and from the page layout
Updating records
Importing and exporting data into development environments
Importing data
Exporting data
Importing data through the Data Import Wizard
Exporting data through Data Export
Importing data through Data Loader
Exporting data through Data Loader
Summary
Quiz
Section 2: Logic Process Automation and the User Interface
Declarative Automation
Formula fields
Roll-up summary fields
Declarative process automation features – workflow and processes
Workflow rules
Process Builder
Declarative process automation features – approvals and flows
Approval processes
Creating the approval process
Activating the approval process
Visual Workflow
Testing the workflow
When to use declarative process automation features versus Apex
Which automation tool do you use?
A record needs approval
When a record has certain values or meets certain criteria
You need to capture input and then do something with that information
Summary
Quiz
Apex Basics
What is a class and an instance?
Understanding the features of Apex
How to develop Apex
When should you use Apex?
The Developer Console
Exercise 1 – opening the Developer Console and looking around for possibilities
Exercise 2 – creating a new class in the Developer Console
Executing the code
Understanding code and its execution
Apex variables constants and expressions
Apex data types
Constants
Expressions
Operators
Access modifiers
Private
Protected
Public
Global
Exercise – building a new class and defining a private access modifier
Apex control flow statements
Conditional statements
Switch
Loops
The do-while loop
The while loop
The for loop
Iterations
Iteration of a set or list
Iteration collections
Working with data in Salesforce
Selecting data with SOQL and SOSL
SOQL syntax
SELECT fieldList [subquery] [...]
FROM objectType[...]
[WHERE conditionExpression]
[GROUP BY {fieldGroupByList|ROLLUP (fieldSubtotalGroupByList)|CUBE (fieldSubtotalGroupByList)}
[ORDER BY fieldOrderByList {ASC|DESC} [NULLS {FIRST|LAST}] ]
[LIMIT numberOfRowsToReturn]
[OFFSET numberOfRowsToSkip]
Selecting records with dynamic parameters
Variable assignment
SOQL aggregate optional clauses and return
SOQL relationships
SOSL
FIND {SearchQuery}
[ IN SearchGroup ]
[ RETURNING FieldSpec [[ toLabel(fields)] [convertCurrency(Amount)] [FORMAT()]] ]
[ LIMIT n ]
DML statements
Different types of DML statements
Which type of DML should I use?
Methods of DML
Inserting records
Transaction control
Updating records
Upserting records
Exercise
Deleting and undeleting records
Merging records
Summary
Quiz
Apex - Beyond the Basics
Apex classes and interfaces
Interfaces
Virtual and abstract classes
Abstract classes
Inheritance from abstract classes
Virtual classes
Annotations
Object schema
getGlobalDescribe()
Object description
Field description
Apex triggers
Trigger syntax
Trigger variables
Trigger.isExecuting
Trigger.isInsert
Trigger.isUpdate
Trigger.isDelete
Trigger.isUndelete
Trigger.isBefore
Trigger.isAfter
Trigger.new
Trigger.newMap
Trigger.old
Trigger.oldMap
Trigger.size
Governor limits
Per-transaction limits
Per-transaction managed package limits
Lightning Platform limits
Static Apex Limits
Size-specific limits
Miscellaneous Apex limits
An Apex trigger pattern for efficient data processing
Best practices
Trigger design patterns
Web service calls in triggers
@future
Queueable interface
The order of execution
Exception handling
Custom exceptions
Exception class
Security in Apex
DML security
Field-level security
SOQL injection
Use bind variables
Escape SingleQuotes
Replacing characters
Whitelisting
Record security – with and without sharing
Web service callouts
The endpoint
The HTTP request
Exercise
Summary
Quiz
The Salesforce User Interface
Introduction
Displaying Salesforce data using Visualforce
Where is this used?
Visualforce language
Creating Visualforce pages
Standard controllers
Exercise
Standard list controllers
Controller extensions
Working of a controller extension
Custom controller
Controller methods
Action methods
Getter actions
Setter methods
Validation rules and custom controllers
Web content in Visualforce
Static resources
Incorporating Visualforce pages into Force.com
Force.com sites
Configuration of a site
Lightning Component framework
My Domain
Benefits of the Lightning Component framework
Resources in a Lightning component
Component attributes
Expressions
Value providers
The component
The renderer
The Helper
The client-side controller
Server-side controller
Summary
Quiz
Section 3: Testing Debugging and Exercise
Testing in Salesforce
Testing deployment requirements and the testing framework
The importance of testing
The four principles of a good testing approach
Creating test data from scratch
Performing your test scenario
Be assert-ive!
Breaking things
Be bulkyfied!
Other stuff
Writing Apex unit tests
Setting up test data
@TestSetup
Mixed Data Manipulation Language (DML) operations
Creating a unit test
The test data
The test scenario
What’s the result of the test?
Executing test classes
Testing web service callouts
Callout types
WSDL2Apex
HttpCalloutMock
Invoking Apex to execute anonymously versus unit tests
Test functions
The impact on code during declarative changes
Summary
Quiz
Debugging and Deployment Tools
Monitoring and accessing debug logs
What is a debug log?
Working with the Developer Console Workbench and Force.com IDE platforms
Developer Console
Workbench
The Force.com IDE
Salesforce environments
Deploying metadata to another org
Deploying metadata with change sets
Deploying metadata through unmanaged packages
Deploying metadata through an IDE
Remember the following about deployments
Summary
Quiz
Mock Tests
Mock exam
Appendix
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Code solutions
Code solution – DML update statement with Database.update statement
Code solution for upserting records
Code solution – API connection to the Person object
Visualforce page – AddNewMovie
The MovieExtension test class – setting up test data
Executing unit tests – example of a bad scenario
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-08-20 10:03:07