Set Default Lightning Experience for users

Requirement: Set Default Lighting Experience for the User based on Profile

Solution: Using  Visual flow and Login flow you can achieve the solution

1) Visual Flows
2) Login Flows

Step 1: Set Up>> Flow>> New Flows

Create the Variables
1) User Id
2) User Name

Click on "Resources Tab" and then Double Click on Variable and fill detail as mention in snapshot










Step 2: Click on "Palette Tab" and then select the record Lookup and fill mention detail as mention below







Step 3:  This is the main step, On User object there is a standrad field UserPreferencesLightningExperiencePreferred  which one track the user is in Lightning or Classic.Setting this field to true will force the Lightning UI. And setting its value to false will force the Classic mode.

Click on "Palette Tab" and then select the record Update and mention detail as mention below







Step 4: Select the Screen and display the Message, This message will apear when user will login. Add display text from Add field section.

This step is optional








Step 5: Map the Screen as mention below and set Record Lookup screen as a default







Step6: Set Up > Login Flows>> New 

Select Type: Flow

Enter login flow name, Select the Created visual flow, User License and Profile






Login in Org




Thanks
Sumit Shukla
Mob: +919711055997









Comments

Popular posts from this blog

Salesforce Spring 16 Release Exam (Maintenance Exam Q&A) for Developer 201 Admin

Show Hyper Link On Add Error in Salesforce Trigger

Show the Success Message before Redirecting the Detail page on Visualforce Page