Book Image

Salesforce Lightning Cookbook

By : Syed Chand Shah
Book Image

Salesforce Lightning Cookbook

By: Syed Chand Shah

Overview of this book

<p><span id="description" class="sugar_field">The new Lightning Experience combines three major components—Lightning Design System, Lightning App Builder, and Lightning Components—to enable anyone to quickly and easily create beautiful, modern enterprise apps. If you wish to meet the challenges that Lightning throws at you head-on, then look no further because this practical book will be your faithful companion and ensure that you make best use of the Lightning platform.</span></p> <p><span class="sugar_field"><span id="description" class="sugar_field"> The book starts by walking you through the three major Lightning Components and helps you enable and configure a Lightning solution. You will explore the art of working with standard components and build a basic layout for the application. Then, you will add more advanced components using the Lightning Framework. Finally, you will also build and migrate reports and dashboards to make your app look more professional. Towards the end of the book, you’ll make use of Design System to work with Salesforce data and lay out the entire page with the components that you’ve built, before integrating Visualforce in your application.</span> </span></p>
Table of Contents (11 chapters)

Creating a custom domain


We need to register and deploy a custom domain in order to use custom components in the Lightning App Builder. The Lightning App Builder is the place where we use components, be it standard components, custom compressed components, or installed components for Lightning pages. We need a custom domain, which we need to register, test, and deploy.

How to do it… 

  1. Open a browser and type in the custom URL that you have selected, in our case ltng-cookbook-dev-ed.my.salesforce.com:

 

 

  1. This is a branded custom URL. In order to register it, if you are not already in Setup, simply click the Setup button in the top-left corner.
  2. Then, go to PLATFORM TOOLS in SETTINGS|Company Settings|My Domain:
  1.  You can scroll down and see your domain name in the Your domain name is section:

Custom domain name 

How it works…

You will receive an email to test the domain, sent to the email address you provided Salesforce with, within 3-30 minutes. After that, you can deploy the domain to users. The domain is now ready. You need to be ready with the Developer Edition; you have created or used another Salesforce user license, that is, a Sample User, in addition to the System Admin; and you have a custom domain registered and deployed. This refers to Lightning Experience. For older editions, older organizations, those pre-dating the Lightning Experience, these organizations are pre-enabled with Lightning Experience.

Go to the username button (System Admin). You have a switcher there, Switch to Salesforce Classic, which means Lightning Experience is already enabled. We are discussing this mainly in relation to older organizations that predate Lightning Experience. This is our Classic user interface. We are running through this for older organizations, for clients who are interested in switching to the new Lightning Experience:

From the Classic user interface, we'll now look at how to create users. We will go to Setup and Administer; in the Manage Users section, select Users, click on New User, and provide the requisite information:

Here, the User License should be Salesforce and you can assign any standard or custom profile. You are ready with the Developer Edition, with another user and also a custom domain: