Thursday, April 6, 2017

Login Flows to Display Important Messages to User After Login

Sometimes it is required to display some message to SFDC users when some maintenance or migration activity is getting performed in production. For example, during some major project release which may take many hours or many days for metadata and data migration, you want to display message to SFDC user saying "Maintenance is in progress and you may experience intermittent issues".

You might have seen these kind of intermediate screen informing about Salesforce maintenance window after logging into salesforce.

Login Flows allow administrators to display intermediate screen (Flow) once user is authenticated and after that user will be redirected to home page of salesforce.

You can create a flow using flow designer and associate it with Login flow. As you already know that flow can be used to collect some information from users or to display some message to end users. Using flow you can specify set of screen to capture data from user or navigate the user's to set of instructions.

Important points regarding Login Flows:
  • The login flow screens are embedded within the standard Salesforce login page for uniform user experience.
  • You need to associate Login flows to different profiles. So all user related to that profile will see flow screen after authentication.
  • Login Flows can be applied to SFDC Orgs, communities and portals. 
  • Login flow comes into picture whenever user login through UI either using username and password, delegated authentication, SAML single sign-on, and social sign-on through a third-party authentication provider

Now we will create a sample flow to display maintenance message to end users during some major project release. Below are steps which we need to follow:


Create a flow

  • Navigate to Set Up--> Create-->Flow. Click on New Flow button. This will open Flow designer screen. Drag Screen Palette from left side and name it as "Maintenance Window Message".

  • Now Click on "Add a Field" tab and double click on display text.

  • Now click on "Field Settings" tab and click on display text. Give unique name as "MessageToDisplay". Specify the message which you want to display to end User and then click Ok.

  • Mark screen as start element for you flow by clicking on green down arrow as shown below.

  • Now Save flow by clicking on Save button and name flow as "Maintenance Window Flow".

  • Now Close the Flow and Activate it. Click on Activate link. Remember only active flow will be available for login Flows.

Assign Login Flow to Profile

  • Navigate to Set Up-->Security Controls-->Login Flows. Click on New Button. Specify name as "Maintenance Window Message" and select license and profile. Profile list depends on license selected by user.

  • In this way you can create multiple entries for different profiles.

Now you login into Salesforce to test this. Once you specify your username and password, you will see below message screen.



Points to remember:
  • You can just delete the login Flows records after maintenance window so that users will not see this message after login.
  • You can not create more than 1 login flow record for a given profile. Suppose you want to assign different flow to same profile in login flow then you will get below error:



Hope this will help!!!

For more details on Login flow, please refer below URL:
Login Flows


Other Blogs>>: 
DYNAMIC APEX IN SALESFORCE
SOQL INJECTION IN SOQL
CUSTOM METADATA AND CUSTOM SETTINGS IMPLEMENTATION TRICKS
REST API TUTORIAL FOR SALESFORCE
VISUALFORCE COMPONENT FOR RECORD STATUS BAR
FETCHING FILE FROM EXTERNAL/PUBLIC URL AND STORING IT IN SALESFORCE

51 comments:

  1. Will this work for community login as well?

    ReplyDelete
  2. Yes. This will work for communities.
    You need to create entry in login flows for profile which is assigned to community.

    ReplyDelete
  3. hi Sunil hope you are doing well.If an Org have 200+ profile and we want to put this maintenance message to all the users, how can we avoid creating 200 login flows? is there any global setting that displays across the profiles?

    ReplyDelete
    Replies
    1. Hi Krishna,

      As far as I know, Login flows can be associated with profiles only. I am not aware of any setting which initiates login flow for all users in organization.

      Thanks,
      Sunil Kumar

      Delete
  4. Is it possible to display images/screenshots in a login flow? I can get the images to display if I run the flow manually (via the Run button in the designer window), but when I run it as a login flow, the images don't appear. I have my image uploaded as a Document, to a public folder, and marked as external. The HTML I'm using is (adding without the outside brackets because it won't let me post otherwise)

    img src="/servlet/servlet.ImageServer?id=0152D000000Dxxx&oid="00D2D0000000xxx"/

    ReplyDelete
  5. You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... https://sites.google.com/site/hotmailloginonline/

    ReplyDelete
  6. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. entrar hotmail

    ReplyDelete
  7. For instance, assume "xyz@gmail.com" has the principle secret key as "qwerty" and semi login secret word as "asdf". hotmail

    ReplyDelete
  8. The content is very useful for me and very interesting. Surely, this post is very valuable for all readers. Primavera P6 Certification Training in Chennai | Primavera Training in India

    ReplyDelete
  9. The most recent declarations have made ready for organizations to consider how to use the extra new abilities by Salesforce notwithstanding the current cloud includes in Salesforce. Job oriented training on Salesforce in Pune

    ReplyDelete
  10. RSJ is at the top of our game when it comes to tax-minimization strategies for asset growth, protection and transfer. We have always known that something was missing from traditional estate planning for high-net-worth families. hop over to this website

    ReplyDelete
  11. That is really nice to hear. thank you for the update and good luck. pengeluaran togel hongkong

    ReplyDelete
  12. Thank you so much for such a well-written article. It’s full of insightful information. Your point of view is the best among many without fail.For certain, It is one of the best blogs in my opinion. filler ใต้ตา

    ReplyDelete
  13. Do you need an urgent loan of any kind? Loans to liquidate debts or need to loan to improve your business have you been rejected by any other banks and financial institutions? Do you need a loan or a mortgage? This is the place to look, we are here to solve all your financial problems. We borrow money for the public. Need financial help with a bad credit in need of money. To pay for a commercial investment at a reasonable rate of 3%, let me use this method to inform you that we are providing reliable and helpful assistance and we will be ready to lend you. Contact us today by email: daveloganloanfirm@gmail.com Call/Text: +1(501)800-0690 And whatsapp: +1 (501) 214‑1395

    NEED A LOAN?
    Ask Me.

    ReplyDelete
  14. At Inovi, we’re committed to achieving the highest success rates while providing personalized care to our patients. Our Houston location offers expert care and is home to our state-of-the-art embryology lab. like it

    ReplyDelete
  15. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 먹튀폴리스

    ReplyDelete
  16. I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. 먹튀검증

    ReplyDelete
  17. I wrote about a similar issue, I give you the link to my site. 토토사이트

    ReplyDelete
  18. Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, 토토사이트 인디벳

    ReplyDelete
  19. If you are looking for more information about flat rate locksmith Las Vegas check that right away. detectives privados madrid

    ReplyDelete
  20. Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. detectives en barcelona

    ReplyDelete
  21. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. 먹튀검증업체

    ReplyDelete
  22. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. 먹튀폴리스

    ReplyDelete
  23. HOW I GO MY DESIRED XMAS LOAN AMOUNT $520,000.00 FROM A RELIABLE AND TRUSTED LOAN COMPANY LAST WEEK. Email for immediate response: drbenjaminfinance@gmail.com

    Hello everyone, Am here to testify of how i got my loan from BENJAMIN LOAN FINANCE(drbenjaminfinance@gmail.com) I don't know if you are in need of an urgent loan to pay bills, start business or build a house, they offer all kinds of loan. So feel free to contact Dr.Benjamin Scarlet Owen he holds all of the information about how to obtain money quickly and painlessly via Email: drbenjaminfinance@gmail.com

    and consider all your financial problems tackled and solved. Share this to help a soul right now, Thanks


    ReplyDelete
  24. Teatime Results Draw takes place at 5:49 pm (UK time) from February to October, and 4:49 pm throughout the rest of the year. UK49s Teatime Results. The UK49s ...
    https://politicsinquotes.com/

    ReplyDelete
  25. [6:31 pm, 09/12/2021] +1 (804) 582-4540: It Tears me Up Whenever we receive complaints from Clients About Their Experience With the Hackers They Met Before They Heard about us.
    These Days There Are alot of Hackers Online, You Just Have to Be Careful about who you meet for help, because many people now don't know who to ask for help anymore but there's actually a solution to that which I am giving you for free, Don't go out there seeking for Hackers Yourself, Because the probability of getting a Real Hacker Out there Is Very Slim . ❌❌ ❌ Most Of Them are actually not who they say they're, they are just here to Rip people Off, You Can Always Identify Them With Their False Advertisements and False Testimonies Trying To Lure you Into their Arms, And most of them use yahoomails, gmails and other cheaper email providers which could easily expose their vulnerabilities, Please Don’t Fall For Them🚷 Come To Think Of It, Why would a Legit Hacker Be using a gmail or a cheap email provider that exposes his vulnerabilities????⚠️⚠️⚠️
    Well, Our Purpose Here Is To Link You Up With Top Legit Hackers With Great Online Reputations and Impressive LinkedIn Profiles That’ll Blow Your Mind.

    ☑️ COMPOSITE FIRMWARE SECURITY SPECIALISTS is here to Provide you with The Best Hackers, So you can get saved from The Arms of the Fake Hackers❌❌.


    ☑️All our Specialists are well experienced in their various niches with Great Skills, Technical Hacking Strategies And Positive Online Reputations And Recommendations🔘
    They hail from a proven track record and have cracked even the toughest of barriers to intrude and capture all relevant data needed by our Clients.

    We have Digital Forensic Specialists, Certified Ethical Hackers, Software Engineers, Firmware Security Experts, Private investigators and more. Our Goal is to make your digital life secure, safe and hassle free by Linking you Up With these great Professionals such as JACK CABLE, ARNE SWINNEN, SEAN MELIA, DAWID CZAGAN, BEN SADEGHIPOUR And More. These Professionals are Well Reserved Professionals who are always ready to Handle your job with great energy and swift response so that your problems can be solved very quickly.
    All You Need to Do is to send us a mail and we’ll Assign any of these specialists to Handle your Job immediately.

    ☑️ Below Is A Full List Of Our Services:
    ▪️ FUNDS RECOVERY ON SCAM INVESTMENTS, BINARY OPTIONS TRADING and ALL TYPES OF SCAMS.
    ▪️ WEBSITE AND DATABASE HACKING 💻
    ▪️ CREDIT REPAIR. 💳
    ▪️ PHONE HACKING & CLONING (giving you 📱 Unnoticeable access to everything Happening on the Target’s Phone)
    ▪️ CLEARING OF CRIMINAL RECORDS ❌
    ▪️ SOCIAL MEDIA ACCOUNTS HACKING 📱
    ▪️RECOVERY OF DELETED FILES 📤
    ▪️LOCATION TRACKING 📌
    ▪️BITCOIN MINING ⛏ And lot More.


    ☑️ CONTACT:
    .....
    firmwarehacks@gmail.com
    🔘2021 © composite firmware specialists
    🔘Want faster service? Contact us!
    🔘All Rights Reserved ®️

    ReplyDelete
  26. xxx video - Bad credit loans no guarantor - Bad Credit History offers guaranteed loans for people with very bad credit from £500 up to £75000 with no guarantor, credit check, broker and no fees.

    ReplyDelete
  27. I think this is an informative post and it is very useful and knowledgeable. We provide LCD modules/LCD Displays, Graphic LCM, smart Display LCD, TFT LCM, Custom LCD Module Display, and LCD panels. china LCD Manufacturers.

    tft-lcd modules

    ReplyDelete
  28. Existing without the answers to the difficulties you’ve sorted out
    through this guide is a critical case, as well as the kind which could
    have badly affected my entire career if I had not discovered your
    website.
    C#.NET Training In Chennai
    hadoop training in chennai
    software testing training in chennai

    ReplyDelete
  29. Today's Video Dramas Serials Update and Reality Shows online. Live hotstar Desi Tv Serials. Hindi TV Serial Upcoming tellyupdates. Written Episod Update Telly ...
    https://apnetvserialz.com/

    ReplyDelete
  30. Thanks for sharing this useful content. Munafawala is Best Loan Company in Jaipur Offers Different Types of Bank Loans in Jaipur ·

    Best Loan Company in Jaipur

    ReplyDelete
  31. I appreciate you sharing this blog article. Really thank you! Really Great.
    privnote

    ReplyDelete
  32. Nice post.

    Conversational AI is AI-driven virtual assistant that interacts with the user to provide seamless and automated support with minimal human intervention. They use the technology of Artificial Intelligence to understand the context of the questions asked and provide personalized support that is unique for the concerned user.
    Conversational AI service desk

    ReplyDelete
  33. It helps a lot. Thank you. That a very useful writing. 메이저토토

    ReplyDelete
  34. I didn t know there was such a good place. I will visit often from now on. I hope your business thrives. 토토검증

    ReplyDelete
  35. Nice knowledge gaining arti 토토사이트cle. This post is really the best on this valuable topic

    ReplyDelete
  36. The TBS applications make watching movies and complete episodes of your favorite shows effortless. The application is available on all major streaming platforms including Apple, Android, Roku, and Fire TV. To watch TBS programming one of these streaming devices, install the TBS app from the relevant application store and then get it activated at tbs.com/activate. Make sure you have a TV provider account to link the app. For complete details, refer to this post.

    ReplyDelete
  37. BubzyRecruitment consultants have unparalleled recruiting expertise and an in-depth knowledge of the UK construction jobs market.construction recruitment agencies Bournemouth

    ReplyDelete
  38. At BubzyPainting, we've qualified painters and decorators with over 30 years of experience to provide quality painting and decoration services.Painting Services in St Helens

    ReplyDelete
  39. Ultimately, that decision is down to you. Based on the information above, you can look at your goods and deliveries.delivery near aarons hill

    ReplyDelete
  40. Are you leaving a comment to draw attention to yourself, or to add to the conversation? Home Renovations Dallas, TX

    ReplyDelete
  41. The query seems incomplete or missing some details. To improve login flows, consider the following User-Friendly Design: Ensure the login flow is intuitive and user-friendly, with prominent username and password fields and clear labels. Error Handling: Display helpful error messages if users enter incorrect login credentials, highlighting the issue and providing guidance on correcting it. Security Reminders: Include security reminders, such as promoting strong passwords and enabling two-factor authentication. Forgot Password/Username Links: Make it easy for users to recover their account by providing prominent "Forgot Password" or "Forgot Username" links. Progress Indicators: Show users where they are in the process and how many steps remain. Mobile Responsiveness: Ensure the login flow is responsive and works well on various devices, especially mobile, for a seamless and efficient experience. Privacy Policy and Terms of Service Links: Include links to your privacy policy and terms of service to inform users about data handling. Social Media Login Options: Offer the option to log in using social media accounts to simplify the process and improve user experience. Allow users to set notification preferences during the login process, specifying the type and frequency of notifications they wish to receive. Provide a clear and easily accessible logout option for security and user control.how to get a divorce in virginia

    ReplyDelete
  42. Clear Navigation: Place the login option in the header or prominent button on the homepage for easy navigation. Simplified Forms: Ask for only essential information, such as username/email and password, without overwhelming users with unnecessary fields. User-friendly error messages: Provide helpful suggestions for incorrect login credentials or other issues. Password Strength Indicators: Provide feedback on password strength to help users create secure passwords. Multiple Authentication Options: Offer multiple options, such as email/password, social media login, or biometric authentication. Remember Me Option: Include a "Remember Me" checkbox to stay logged in across sessions. Two-Factor Authentication (2FA): Enable or require users to enable 2FA for added security. Progress Indicators: Show users where they are in the process and how many steps remain. Responsive Design: Optimize login flows for various devices and screen sizes for a consistent experience across platforms. Accessibility: Ensure login forms and elements are accessible to users with disabilities. Privacy and Security Information: Include links to your privacy policy and security measures to reassure users about their information safety.abogados divorcio spotsylvania va

    ReplyDelete
  43. Designing an effective login flow is crucial for user engagement and security. Key elements of an effective flow include simplicity and clarity, clear labels, progress indicators, user guidance, security measures, important information display, and seamless navigation. Simplicity and clarity involve using minimal fields, clear labels, progress indicators, and inline validation for immediate feedback. Security measures include two-factor authentication (2FA), captchas, and secure messaging. Important information displays include notifications and alerts, account status, and password recovery. Seamless navigation allows users to easily navigate between login and signup pages. An example login flow includes a welcome screen, fields for email/username and password, buttons for login, forgotten password, and sign up. Validation and feedback include inline error messages, tooltips, and two-factor authentication (optional). Important notices display include a banner, alerts, and successful login and dashboard. By balancing simplicity, security, and user engagement, a user can enhance their experience while safeguarding their information. Using an example codesnippet can help create a basic yet functional login form that incorporates these principles. In summary, creating an effective login flow involves balancing simplicity, security, and user engagement. By providing clear guidance, incorporating important notices, ensuring security measures, and making the process seamless, users can enhance their experience while safeguarding their information.leyes de accidentes de motocicleta

    ReplyDelete
  44. An effective login flow is crucial for user engagement and security. Key elements include simplicity, clarity, clear labels, progress indicators, user guidance, security measures, important information display, and seamless navigation. Security measures include two-factor authentication, captchas, and secure messaging.abogado dui manassas va

    ReplyDelete