🚀 Complete Tutorial: Creating Lightning Pages in Salesforce
🔹 1. What are Lightning Pages?
Lightning Pages are customized layouts in the Lightning App Builder where you can drag-and-drop components (standard, custom, or AppExchange) to design record pages, home pages, and app pages.
Think of it like page builder for Salesforce — no code needed, just drag-and-drop.
🔹 2. Types of Lightning Pages
- 
App Page → A one-page app with custom dashboards, lists, or reports. 
- 
Home Page → Custom homepage for different profiles. 
- 
Record Page → Customized layout for a specific object (e.g., Account, Contact, or a custom object). 
🔹 3. Step-by-Step: Create a Lightning Page
Step 1: Open Lightning App Builder
- 
In Salesforce, click the ⚙️ Gear Icon (top right). 
- 
Select Setup. 
- 
In Quick Find, type App Builder. 
- 
Click Lightning App Builder. 
Step 2: Create a New Lightning Page
- 
Click New. 
- 
Choose the page type: - 
App Page (dashboard-like view) 
- 
Home Page (custom home page) 
- 
Record Page (custom object page layout) 
 
- 
- 
Example: Select Record Page. 
- 
Choose the object → e.g., Account. 
- 
Enter a label: Account Custom Page. 
Step 3: Select a Page Template
Salesforce gives layouts (1 region, 2 regions, header + sidebar, etc.).
Pick one → e.g., Header and Three Regions.
Step 4: Add Components
You’ll see a drag-and-drop builder:
- 
Left Panel → Standard Components (Tabs, Related Lists, Report Charts, Path, Tabs, Visualforce, etc.). 
- 
Middle → Canvas Area. 
- 
Drag components to the page. 
👉 Example:
- 
Add Highlights Panel (shows key account info). 
- 
Add Related Lists. 
- 
Add a Report Chart to show account performance. 
Step 5: Assign the Page
After designing:
- 
Click Save. 
- 
Click Activate. 
- 
Choose where to make it active: - 
Org Default → Applies to all users. 
- 
App Default → Only applies inside a specific app (e.g., Sales App). 
- 
App, Record Type, Profile → Assign based on conditions. 
 
- 
Step 6: Test the Page
- 
Go to App Launcher → open Sales App (or your custom app). 
- 
Open an Account record. 
- 
You should now see your new Lightning Page layout. 🎉 
🔹 4. Example: Create a Home Page for Sales Users
- 
Go to App Builder → New → Home Page. 
- 
Add Dashboard component. 
- 
Add Recent Items. 
- 
Add Report Chart (e.g., Opportunities by Stage). 
- 
Save → Activate → Assign only to Sales Profile. 
- 
When Sales Users log in, they’ll see this custom Home Page. 
 
 
 
.webp) 
0 تعليقات
POST Answer of Questions and ASK to Doubt