Login Flows in Salesforce

Login flows in Salesforce is one of the greatest Arsenal that could be used to collect information from users during Login process. You could also use Login flows to show “Terms & Conditions” page or “Privacy policy” Page and make users Accept during Login. Login flows will come for your rescue during deployments and Release to stop users from logging into System.

One of the powerful use cases for flow is during the login / authentication process where you can insert custom business processes before the user gets access to the application.

Login Flow Examples

You can use a login flow to customize the login experience. Common uses cases include collecting and updating user data at login, configuring multi-factor authentication and etc.

Have you ever wondered how Salesforce was showing Maintenance message?

Did you see Salesforce asking to provide Phone number for Mobile verification?

There are lots of other good example:-

  • You can use login flows to interact with external third-party authentication providers by using an API. like
  • You can also implement a third-party SMS or voice delivery service, like Twilio or TeleSign, to implement an SMS-based multi-factor authentication and identity verification flow.

Set Up a Login Flow

Let’s see how we can use Login Flow in Salesforce.

  1. You can create the login flow from Flow builder or Visual force page.
  2. After creating the a flow, designate the flow as a login flow and associate it with specific profiles in your org. You can create multiple login flows and associate each one with a different user profile.

Don’t associate a login flow with your administrator profile until you are sure that the login flow works properly. Otherwise, if it fails, you can’t log in to your org.


Please check below recording for step by step process to create login flow in Salesforce.

Please Subscribe to the channel to get notification for upcoming recording.

If you are new in Salesforce. Please check our free Salesforce Admin and Salesforce Developer training.

Salesforce Apex Hours

Amit Chaudhary

Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates. He is a active blogger and founder of Apex Hours.

Share this article

1 Comment

  • Loved this one & i came across this Just at a right time when i have requirement around the same. Thanks a bunch

Leave a reply

Subscribe for Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4,092 other subscribers

Our Supporter


Apex Hours

Apex Hours is one stop platform to learn Salesforce skills and technology

Join our Newsletter and get tips and tricks how to explore the salesforce for free!