Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Salesforce Lightning Platform Enterprise Architecture
Salesforce Lightning Platform Enterprise Architecture

Salesforce Lightning Platform Enterprise Architecture: Architect and deliver packaged applications that cater to enterprise business needs , Third Edition

eBook
$29.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Salesforce Lightning Platform Enterprise Architecture

Leveraging Platform Features

In this chapter, we will explore some key features of the Lightning platform that not only enable developers to build an application more rapidly but also provide key features to the end users of the application. Using these features in a balanced way is the key to ensuring that you and your users not only get the best out of the platform today but continue to do so in the future as the platform evolves.

A key requirement for an enterprise application is the ability to customize and extend its functionality, as enterprise customers have varied and complex businesses. You should also keep in mind that, as your ecosystem grows, you should ensure that your partner relationships are empowered with the correct level of integration options and that partners need to interface their solutions with yours; the platform also plays a key role here.

As we...

Packaging and upgradable components

The amount of time taken to install your application and then get it configured for live use by your customers is a critical part of your customer relationship. They are obviously keen to get their hands on your new and improved releases as quickly as possible. Careful planning and awareness of the components you are using support packaging, and are upgradeable, are important, as these things impact the effort involved in going live with your application.

When exploring the various platform features available to you, it is important to check whether the related component types can be packaged or not. For a full list of components that can be packaged, you can use the Metadata Coverage report at https://developer.salesforce.com/docs/metadata-coverage.

If a component type relating to a feature you wish to use cannot be packaged, it does...

Understanding Custom Field features

Custom Fields carry many more features than you might think; they are much more than the simple field definitions you find on other platforms. Having a good understanding of a Custom Field is key to reducing the amount of code you write and improving the user experience and reporting of your application's data.

Default field values

Adding default values to your fields improves the usability of your application and can reduce the number of fields needed on the screen, as users can remove fields with acceptable defaults from the layouts.

Default values defined on Custom Fields apply in the native user interfaces and Visualforce UIs (providing the apex:inputField component is used), and...

Understanding the available security features

The platform provides security controls to manage the accessibility of functionalities in your application and also the visibility of the individual records it creates. As an application provider, your code has a responsibility to enforce security rules as well as provided integrations that help administrators configure security easily. This section is not aimed at taking a deep dive into the security features of the platform but is more to aid in understanding the options, best practices, and packaging implications.

One of the key checks the security review process described in the previous chapter makes is to scan the code to ensure it is using the appropriate Apex conventions to enforce the security rules administrators of your application configure, as not all security checks are enforced automatically for you.

This chapter discusses...

Platform APIs

Salesforce provides a number of APIs to access and manipulate records in its own objects that belong to applications such as CRM; these APIs are also extended to support Custom Objects created by admins or provided by packages installed in the subscriber org. Salesforce dedicates a huge amount of its own and community-driven documentation resources you can reference when educating partners and customer developers on the use of these APIs. Thus, it is important that your application works well with these APIs.

Platform APIs are enabled for Enterprise Edition orgs and above, though if you have a need to consume them in Professional or Group Edition orgs, Salesforce can provide a Partner API token (following the completion of a security review) to enable their use; this is unique to your application and so does not provide access for code other than yours.

Typically...

Localization and translation

It is important to take localization and translation into consideration from the beginning as it can become difficult and costly to apply it later. Fortunately, the platform can do a lot of work for you.

Localization

When using the native user interface, it automatically formats the values of numeric and date fields according to the Locale field on the user profile. Visualforce pages using the apex:outputField and apex:inputField components will automatically format values, and outputting local sensitive values in any other way will need to be handled manually in your Apex controller code or in your JavaScript code. Lightning components using lightning:outputField and lightning:inputField...

Building customizable user interfaces

The most customizable aspect of the user interface your application delivers is the one provided by Salesforce through its highly customizable layout editor, which provides the ability to customize standard user interface pages (including those now delivered via the Salesforce1 mobile client) used to list, create, edit, and delete records.

Lightning Experience is the latest user interface experience available for your desktop users. Salesforce Classic or Aloha is the name given to the existing user interface. It's radically different both in appearance and technology. Fortunately, your existing investments in layouts and Visualforce are still compatible. Lightning, however, does bring with it a more component-driven aspect, and, with it, new tools that allow even greater customization of the overall user experience.

Keep in mind...

Email customization with email templates

Using Apex, you can write code to send emails using the Messaging API. This allows you to dynamically generate all attributes of the emails you wish to send: the from and to address, subject title, and body. However, keep in mind that end users will more than likely want to add their own logo and messaging to these emails, even if such emails are simply notifications aimed at their internal users.

Instead of hardcoding the structure of emails in your code, consider using email templates (under the Setup menu). This feature allows administrators in the subscriber org to create their own emails using replacement parameters to inject dynamic values from records your objects define. Using a Custom Setting, for example, you can ask them to configure DeveloperName of the email template to reference in your code. You can package email templates...

Process Builder, Workflow, and Flow

Salesforce provides several declarative tools to implement business processes and custom user experience Flows. End user operations such as creating, updating, or starting an approval process for a record can be customized through two tools, known as Workflow and Lightning Process Builder. When you need to implement a UI Flow that provides a wizard or interview-style user experience, you can use the Lightning Flow tool. This tool can be used to define more complex conditional business processes that need to read and update records. Automation Flows, or sometimes "headless Flows," are Flows that do not interact with the user and can be referenced within Apex code as well as Process Builder.

Lightning Flow lets you build engaging UIs but has its limits since it is not a programming language in a traditional sense. This does not mean...

Social features and mobile

Chatter is a key social feature of the platform; it can enable users of your application to collaborate and communicate contextually around the records in your application as well as optionally inviting their customers to do so, using the Chatter Communities feature. It is a powerful aspect of the platform but covering its details is outside the scope of this book.

You can enable Chatter under the Chatter Settings page under Setup, after which you can enable Feed Tracking (also under Setup) for your Custom Objects. This setting can be packaged, though it is not upgradable and can be disabled by the subscriber org administrator. Be careful when packaging references to Chatter such as this, as well as including references to the various Chatter-related objects, since this will place a packaging install dependency on your package, requiring all your customers...

Creating and testing a new package version

If you are following along instead of using the source code provided for this chapter, be sure to run sfdx force:source:pull to synchronize the changes made in this chapter. Take the time to review your project file contents after completing the steps in this chapter and then perform another package creation and test an install of the new package in a separate testing scratch org. If you need a reminder of these steps, refer to Chapter 1, Building and Publishing Your Application.

Do not forget to update your ancestry configuration in your sfdx-project.json file as per the instructions in Chapter 1, Building and Publishing Your Application, to reference the package version created in that chapter; otherwise, your new package will not be eligible to upgrade from a previous version install.

If you choose to perform the install...

Summary

In this chapter, you have seen a number of platform features that directly help you build key structural and functional aspects of your application without writing a line of code, in turn, further enabling your customers to extend and customize their application. The chapter also focused on optimizing the tasks performed by consultants and administrators to install and configure an application. Finally, you were made aware of limits imposed within the subscriber org and ways to avoid them, and now have an awareness of them when packaging your application.

Continue to review and evolve your application by first looking for opportunities to embrace these and other platform features and you will ensure that you and your customers' strong alignment with the current and future platform features continues to grow. In the next chapter, we will dive deeper into options...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Use the Lightning Platform to build integrated, scalable, and robust apps focused on enterprise-level customer demands
  • Use the Lightning Component framework to deliver modern and responsive user experiences targeting multiple devices through Lightning Experience and Salesforce Mobile
  • Extend your application with access to external services and AI

Description

Salesforce Lightning provides a secure and scalable platform to build, deploy, customize, and upgrade applications. This book will take you through the architecture of building an application on the Lightning platform to help you understand its features and best practices, and ensure that your app keeps up with your customers’ increasing needs as well as the innovations on the platform. This book guides you in working with the popular aPaaS offering from Salesforce, the Lightning Platform. You’ll see how to build and ship enterprise-grade apps that not only leverage the platform's many productivity features, but also prepare your app to harness its extensibility and customization capabilities. You'll even get to grips with advanced application architectural design patterns such as Separation of Concerns, Unit Testing and Dependency Integration. You will learn to use Apex and JavaScript with Lightning Web Components, Platform Events, among others, with the help of a sample app illustrating patterns that will ensure your own applications endure and evolve with the platform. Finally, you will become familiar with using Salesforce DX to develop, publish, and monitor a sample app and experience standard application life cycle processes along with tools such as Jenkins to implement CI/CD. By the end of this book, you will have learned how to develop effective business apps and be ready to explore innovative ways to meet customer demands.

Who is this book for?

This book is for Lightning platform developers who want to discover the true potential of the platform to develop complex scalable applications for use in enterprise businesses.

What you will learn

  • Create and deploy AppExchange packages and manage upgrades
  • Understand Enterprise Application Architecture patterns
  • Customize mobile and desktop user experience with Lightning Web Components
  • Manage large data volumes with asynchronous processing and big data strategies
  • Implement Source Control and Continuous Integration
  • Add AI to your application with Einstein
  • Use Lightning External Services to integrate external code and data with your Lightning Application

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 04, 2019
Length: 646 pages
Edition : 3rd
Language : English
ISBN-13 : 9781789953664
Category :
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 04, 2019
Length: 646 pages
Edition : 3rd
Language : English
ISBN-13 : 9781789953664
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 155.97
Apex Design Patterns
$48.99
Salesforce Lightning Platform Enterprise Architecture
$54.99
Mastering Apex Programming
$51.99
Total $ 155.97 Stars icon

Table of Contents

16 Chapters
Building and Publishing Your Application Chevron down icon Chevron up icon
Leveraging Platform Features Chevron down icon Chevron up icon
Application Storage Chevron down icon Chevron up icon
Apex Execution and Separation of Concerns Chevron down icon Chevron up icon
Application Service Layer Chevron down icon Chevron up icon
Application Domain Layer Chevron down icon Chevron up icon
Application Selector Layer Chevron down icon Chevron up icon
Building User Interfaces Chevron down icon Chevron up icon
User Interfaces with Lightning Framework Chevron down icon Chevron up icon
Providing Integration and Extensibility Chevron down icon Chevron up icon
Asynchronous Processing and Big Data Volumes Chevron down icon Chevron up icon
Unit Testing Chevron down icon Chevron up icon
Source Control and Continuous Integration Chevron down icon Chevron up icon
Integrating with External Services Chevron down icon Chevron up icon
Adding AI with Einstein Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(5 Ratings)
5 star 80%
4 star 0%
3 star 0%
2 star 20%
1 star 0%
AMol SOlanki Mar 14, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Book will talk about how you build packages, deploy it and manage upgrades. This book will help you understand the architecture of building an application on the Lightning platform. Author did a great job at explaining how to handle large datasets with asynchronous processing including CICD. Author has also explained hoe you use LES to integrate with external code. A good book for devs to understand the concept.
Amazon Verified review Amazon
Nicholas Feb 23, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Aside from being a comprehensive review of the Lightning Platform's features and best practices around solution architecture, Andrew Fawcett manages to make a large amount of complex content easily consumable by efficiently segmenting chapters into purposeful sections. I was surprised at how large the book was, and then surprised again at how easily I was able to read it twice within a month. I'll carry this book around with me for the rest of my career (or until the next edition is written).
Amazon Verified review Amazon
Mrinal Jan 04, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It worse! experience to read on kindle cloud due to strange formatting
Amazon Verified review Amazon
Meighan Aug 28, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Extremely helpful
Amazon Verified review Amazon
Amazon Purchaser Jan 30, 2021
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
The term Architecture is very much misleading for this book and hence forget about Enterprise Architecture .This book is one fit for developers. Do not expect anything to drive your thoughts an Enterprise Architect need.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.