Login Flows in Salesforce

on

|

views

and

comments

Table of Contents

Introduction

Login Flows are used to customize the Login Screen and You can use a login flow to control the business processes that your users follow when they login to Salesforce.

With the help of login flow, we can increase the security of the salesforce by asking for some additional information or asking some security questions.

Use Cases

Here are some of the use cases related to salesforce login flow.

  • Enhance or customize the login experience by adding a logo or login message.
  • Collect and update user data, such as an email address, phone number, or mailing address.
  • Interact with users, and ask them to perform an action. For instance, you can ask them to complete a survey or accept terms of service.
  • Connect to a Salesforce Customer Identity service or geofencing service, and collect or verify user information.
  • Enforce strong authentication, like implementing a multi-factor authentication (MFA) method using hardware, biometric, or another authentication technique.
  • Run a confirmation process. For example, have a user define a secret question, and validate the answer during login.
  • Create more granular policies like setting up a policy that sends a notification every time a user logs in during non-standard working hours.

Login Flows Inputs

When we are creating login flows which are Screen Flows, we can create some pre-defined input variables which will provide the various information about the user and logged-in session.

Here is the list of all the variables which we can create and are the standard inputs.

  1. LoginFlow_LoginType (type Text)
  2. LoginFlow_IpAddress (type Text)
  3. LoginFlow_UserAgent (type Text)
  4. LoginFlow_Platform (type Text)
  5. LoginFlow_Application (type Text)
  6. LoginFlow_Community (type Text)
  7. LoginFlow_SessionLevel (type Text)
  8. LoginFlow_UserId (type Text)
  9. LoginFlow_FinishLocation (type Text)
  10. LoginFlow_ForceLogout (type Boolean)

If you want the user to force logout once the certain condition is met then set the value of LoginFlow_ForceLogout to true

How login flow executes

Login flow always executes once the user has successfully logged in.

Complete video

Amit Singh
Amit Singhhttps://www.pantherschools.com/
Amit Singh aka @sfdcpanther/pantherschools, a Salesforce Technical Architect, Consultant with over 8+ years of experience in Salesforce technology. 21x Certified. Blogger, Speaker, and Instructor. DevSecOps Champion
Share this

Leave a review

Excellent

SUBSCRIBE-US

Book a 1:1 Call

Must-read

How to start your AI Journey?

Table of Contents Introduction Are you tired of the same old world? Do you dream of painting landscapes with your code, composing symphonies with data, or...

The Secret Weapon: Prompt Engineering: 🪄

Table of Contents Introduction Crafting the perfect prompt is like whispering secret instructions to your AI muse. But there's no one-size-fits-all approach! Exploring different types of...

How to Singup for your own Production org?

Let's see how we can have our salesforce enterprise Salesforce Org for a 30-day Trial and use it as a Production environment. With the...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5/5

Stuck in coding limbo?

Our courses unlock your tech potential