Home > Store

Development with the Force.com Platform: Building Business Applications in the Cloud, 3rd Edition

Register your product to gain access to bonus material or receive a coupon.

Development with the Force.com Platform: Building Business Applications in the Cloud, 3rd Edition

eBook (Watermarked)

  • Your Price: $38.39
  • List Price: $47.99
  • About Watermarked eBooks
  • This PDF will be accessible from your Account page after purchase and requires PDF reading software, such as Acrobat® Reader®.

    The eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

    Watermarked eBook FAQ

Description

  • Copyright 2014
  • Dimensions: 7" x 9"
  • Edition: 3rd
  • eBook (Watermarked)
  • ISBN-10: 0-13-351162-6
  • ISBN-13: 978-0-13-351162-8

Master Force.com, Today’s Fastest, Most Flexible Cloud Development Platform

With Salesforce.com’s Force.com platform, you can build and deploy powerful cloud-based enterprise applications faster than ever before. Now, Jason Ouellette gives you all the practical, technical guidance you need to make the most of the newest Force.com releases in your own custom cloud applications.

Throughout, he adds new code and updated best practices for rapidly prototyping, building, and testing production-quality Force.com solutions. This edition’s extensive new coverage includes Developer Console, JSON, Streaming and Tooling APIs, Bulk API, Force.com Canvas, REST integration, support for Web MVC frameworks, Dynamic Apex and Visualforce, and an all-new chapter on mobile user interfaces.

Ouellette covers the entire platform: UIs, database design, analytics, security, and many other topics. His code examples emphasize maintainability, flexibility, and seamless integration—and you can run and adapt all of them with a free Force.com Developer Edition account. Coverage includes:

  • Leveraging Force.com’s customizable infrastructure to deliver advanced Platform-as-a-Service (PaaS) solutions
  • Understanding Force.com’s unique processes, tools, and architecture
  • Developing a complete application, from requirements and use cases through deployment
  • Using the Force.com database as a framework for highly flexible, maintainable applications
  • Applying Force.com’s baked-in security, including user identity, data ownership, and fine-grained access control
  • Constructing powerful business logic with Apex, SOQL, and SOSL
  • Adopting asynchronous actions, Single Page Applications, and other advanced features in Web user interfaces
  • Building intuitive user interfaces with Visualforce, and extending them to public-facing websites and mobile devices
  • Creating smartphone/tablet-friendly apps with HTML5 and Visualforce
  • Performing massive data-intensive tasks offline with Batch Apex
  • Using Force.com integration options, including REST, SOAP, Canvas, and the Streaming, Bulk, Tooling, and Metadata APIs
  • Developing internal social applications with Force.com’s Chatter collaboration tools

If you’re already building Web or mobile applications, take your next giant step into enterprise cloud development—with Development with the Force.com Platform, Third Edition.

All code examples in this book are available on Github at http://goo.gl/fjRqMX, and as a Force.com IDE project on Github at https://github.com/jmouel/dev-with-force-3e.

Sample Content

Table of Contents

1  Introducing Force.com    1

Force.com in the Cloud Computing Landscape    1

Platform as a Service (PaaS)    2

Force.com as a Platform    4

Force.com Services    7

Inside a Force.com Project    9

Project Selection    9

Team Selection    11

Lifecycle    12

Tools and Resources    15

Sample Application: Services Manager    17

Background    17

User Roles    18

Development Plan    19

Summary    19

2  Database Essentials    21

Overview of Force.com’s Database    21

Objects    22

Fields    23

Relationships    25

Query Language    26

Data Integration    29

Working with Custom Objects    32

Force.com Developer Edition    32

Tools for Custom Objects    33

Object Creation    35

Field Creation    38

Entering and Browsing Data    41

Additional Database Features    43

Sample Application: Data Model    49

Data Model Design Goals    49

Data Model Specification    50

Implementing the Data Model    58

Importing Data    64

Summary    69

3  Database Security    71

Overview of Database Security    71

Object-Level Security    74

Profiles    74

Permission Sets    76

Field-Level Security    77

Record-Level Security    79

Record Ownership    79

User Groups    80

Sharing Model    80

Sample Application: Securing Data    84

Designing the Security Model    85

Implementing the Security Model    88

Testing the Security Model    94

Summary    98

4  Business Logic    99

Introduction to Apex    100

Introducing the Force.com IDE    101

Installation    101

Force.com Perspective    101

Force.com Projects    103

Problems View    103

Schema Explorer    103

Apex Test Runner View    103

Execute Anonymous View    104

Apex Language Basics    105

Variables    105

Operators    109

Arrays and Collections    110

Control Logic    113

Object-Oriented Apex    117

Understanding Governor Limits    120

Database Integration in Apex    120

Database Records as Objects    121

Database Queries    122

Persisting Database Records    128

Database Triggers    130

Database Security in Apex    133

Debugging Apex Using Developer Console    133

Checkpoints    133

Execution Logs    134

Unit Tests in Apex    136

Test Methods    136

Test Data    136

Running Tests    137

Sample Application: Validating Timecards    138

Force.com IDE Setup    138

Creating the Trigger    138

Unit Testing    140

Summary    142

5  Advanced Business Logic    143

Aggregate SOQL Queries    144

Aggregate Functions    144

Grouping Records    145

Grouping Records with Subtotals    146

Additional SOQL Features    148

Inner Join and Outer Join    148

Semi-Join and Anti-Join    150

Multi-Select Picklists    154

Salesforce Object Search Language (SOSL)    154

SOSL Basics    155

SOSL in Apex    155

Transaction Processing    156

Data Manipulation Language (DML) Database

Methods    157

Savepoints    159

Record Locking    161

Apex Managed Sharing    162

Sharing Objects    162

Creating Sharing Rules in Apex    163

Sending and Receiving Email    168

Sending Email    168

Receiving Email    172

Dynamic Apex    174

Dynamic Database Queries    175

Schema Metadata    177

Dynamic Instance Creation    179

Custom Settings in Apex    180

Sample Application: Adding Email Notifications    181

Summary    183

6  User Interfaces    185

Introduction to Visualforce    186

Overview of Visualforce    186

Getting Started with Visualforce    188

Visualforce Controllers    191

Standard Controllers    191

Custom Controllers    193

Controller Extensions    197

View Components    198

View Component Basics    198

Data Components    200

Action Components    203

Primitive Components    204

Force.com-Styled Components    205

Force.com User Interface Components    208

Visualforce and the Native User Interface    209

Standard Pages    210

Standard Buttons    213

Page Layouts    213

Custom Buttons and Links    215

Custom Tabs    215

Visualforce in Production    215

Debugging and Tuning    215

Security    218

Error Handling    220

Governor Limits    221

Unit Tests    222

Sample Application: Skills Matrix    222

Basic Implementation    224

Full Implementation    224

Implementation Walk-Through    225

Summary    232

7  Advanced User Interfaces    233

Asynchronous Actions    233

Partial Page Refresh    234

Action as JavaScript Function    235

Action as Timed Event    237

Action as JavaScript Event    237

Indicating Action Status    238

Modular Visualforce    240

Static Resources    241

Inclusion    242

Composition    242

Custom Visualforce Components    244

Dynamic Visualforce    246

Dynamic Field References    246

Component Generation    248

Single-Page Applications in Force.com    250

JavaScript Remoting    250

Force.com with AngularJS    251

Introduction to Force.com Sites    254

Enabling and Creating a Site    254

Security Configuration    255

Adding Pages to a Site    256

Authenticating Users    257

Sample Application: Enhanced Skills Matrix    258

Summary    262

8  Mobile User Interfaces    263

Overview of Salesforce Mobile Technology    263

Salesforce Applications    264

Custom Applications    265

Getting Started with Mobile Web Applications    267

Frameworks    268

Data Access    269

Deployment    270

Sample Application: Mobile Timecard Entry    272

Summary    279

9  Batch Processing    281

Introduction to Batch Apex    282

Batch Apex Concepts    282

Understanding the Batchable Interface    283

Applications of Batch Apex    284

Getting Started with Batch Apex    285

Developing a Batch Apex Class    285

Working with Batch Apex Jobs    286

Using Stateful Batch Apex    289

Using an Iterable Batch Scope    290

Limits of Batch Apex    292

Testing Batch Apex    293

Scheduling Batch Apex    293

Developing Schedulable Code    293

Scheduling Batch Apex Jobs    294

Sample Application: Missing Timecard Report    296

Creating the Custom Object    297

Developing the Batch Apex Class    298

Testing the Missing Timecard Feature    299

Summary    300

10  Integration with Force.com    301

Apex Callouts    301

Calling RESTful Services from Apex    302

Calling SOAP Services from Apex    304

Calling into Force.com Using REST    306

Getting Started with Force.com REST API    306

Force.com REST API Walk-Through    308

Creating Custom Apex REST Web Services    312

Calling into Force.com Using SOAP    314

Understanding Force.com SOAP API    314

Using the Enterprise API    322

Creating Custom Apex SOAP Web Services    326

Sample Application: Anonymous Benchmarking    329

Visualforce Page Design    330

Visualforce Controller Design    331

Integrating the SOAP Web Service    333

Sample Implementation    335

Summary    338

11  Advanced Integration    339

Introduction to the Force.com Streaming API    340

Overview    340

Getting Started with Force.com Streaming API    341

Working with the Force.com Bulk API    344

Overview    345

Importing Records    346

Exporting Records    347

Getting Started with Force.com Canvas    349

Overview    349

Getting Started with Force.com Canvas    350

Introduction to the Force.com Tooling API    354

Overview    355

Getting Started with Force.com Tooling API    355

Understanding the Force.com Metadata API    360

Overview    360

Getting Started with the Metadata API    361

Sample Application: Database Integration    363

Integration Scenario    363

Implementation Strategy    363

Sample Implementation    364

Summary    366

12  Social Applications    369

Overview of the Chatter Data Model    370

Chatter Posts    370

Chatter Comments    374

Feed-Tracked Changes    376

Followed Records    376

Using Chatter in Apex    378

Introduction to the Chatter REST API    379

Working with Chatter Visualforce Components    380

Sample Application: Follow Project Team    382

Summary    386

Index    387

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020