Application Design: App Components Model-View-Controller Plan/Design/Build
Application Design: App Components Model-View-Controller Plan/Design/Build
Components of an Application
Describe model-view-controller design paradigm
Given a scenario, determine if there is sufficient info to plan/
design/build application
App Components
3 Layers make up the App: User It dictates the separation of data, visual
Plan/Design/Build
Model-View-Controller
Advantages of declarative
Encrypted Fields:
Force.com Platform
Steps required to build/deploy application
declaratively
Describe building blocks of application provided by
Force.com platform
Build / Deploy
Force.com is multi-tenant: It can share hardware and
other infrastructure
In a custom application you can also include a custom
logo and landing page
Custom Object: business information that needs to be
captured and it may or may not have business logic
associated with it. They come with reporting, auditing,
and access control and search-able. __c is added as a
suffix to the custom object names
Apps that leverage the API are known as composite
apps
Setup -> Development Tools:
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
Apex classes
API
Components
Email Services
Pages
S-controls / Visualforce
Static resources
Tools
Remote Access
Applications, Tabs
Page Layouts, Record Types
Workflow, Validations Rules
Related Lists
S-Controls
Buttons
Fields
Tab order
Data Model
Functional Data Model for business application with
example scenario
Object Relationships: choose pros/cons
Object Relationships
relational database
Dependent picklists: Standard picklists can be controlling
fields but not dependent fields: Before defining a
dependency, you should ensure that your picklist has at least
one value
You CANNOT create roll up summary fields based on lookup
relationships, must be master-detail
Type of field needs that needs to be wrapped in a function to
be accessed: Picklist Values
Custom fields can be made universally required
Two types of records owners in Salesforce: Users & Queues
Limit for cross-object formula unique relationships per object
across all formulas and rules: 5
Data Model II
Permission Sets and Data Access: appropriate features
Optional Features of the Application: audit fields,
encrypted fields, multi-currency
Optional Features
Data Access
Security, access, and deletion of child records are
User Interface
UI Components
Page Layout:
Visualforce
They are available for all API entities/objects, standard actions like save,
edit , delete
controller="MyAccount">
Force.com Sites
Setup->Develop-->Sites
Force.com sites are:
Public, unauthenticated
websites
Accessed from branded
domain names
Build with VF pages
From data and content in a
Salesforce application
Business Logic
Apply business logic with: Formula Fields, validation
Business Logic
Validation (attached to
Approvals
Create an approval process
Apex
Debugging
Security Controls->View
Lowest common
denominator
Conditional code
Apex:inputField:
Automatically displays
message next to fields
Apex:commandButton:
Attaches an action to a
button
Apex:messages:
Apex:actionPoller:
Data Management
Import Wizard: capabilities and constraints
API-based tools and Force.com Data Loader (GUI
Import Wizard
to import accounts,
contacts, leads, solutions
and custom objects
Import wizard can be used
to load up to 50,000
records
Import wizard can be used
for de-duplication of data
When loading data into a
salesforce application
dependencies between
objects determine the order
in which objects are
loaded. If there is a one-tomany relationship between
A and B, the data for A
should be loaded before
the data for B
Junction object data
CANNOT be imported with
Import Wizard
Record IDs
External IDs
case-insensitive or 15
digit case-sensitive
Same ID value in
Production as in
Sandbox
Ways in which you can
obtain a Records ID:
URL
Reports
API
Dangerous to work
Reporting
Analytics
Analytics