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

61 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. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Sales Fore CRM Training in Chennai

    ReplyDelete
  4. Krishna ChimakurthyOctober 12, 2017 at 11:04 PM

    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
  5. 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
  6. Replies
    1. Great Article. Thank you for sharing! Really an awesome post for every one.

      IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      Delete
  7. Great blog thanks for sharing Consistent and relevant content is the best ways to drive in massive amounts of traffic to your website through Search Engines. Adhuntt Media’s content creation team has got everything covered for you - from high-grade blogs that engage the reader and hit all the sweet SEO spots, unique design posts for your social media feed and professional videos for video marketing.
    digital marketing company in chennai
    seo service in chennai
    web designing company in chennai
    social media marketing company in chennai

    ReplyDelete
  8. Nice blog thanks for sharing Set up your very own unique and classy vertical garden in Chennai. Karuna Nursery Gardens offers you with all the tools and services for building the best vertical garden in your neighbourhood.
    plant nursery in chennai
    rental plants in chennai
    corporate gardening service in chennai

    ReplyDelete
  9. Excellent blog thanks for sharing Pixies Beauty Shop is unlike any of the other cosmetic shops in Chennai. With tons of exclusive imported brands to choose from and the best value, this is the best shopping destination for your personal and salon needs.
    beauty Shop in Chennai

    ReplyDelete
  10. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
    Cyber Security Projects for Final Year

    JavaScript Training in Chennai

    Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete
  11. Very useful blog thanks for sharing IndPac India the German technology Packaging and sealing machines in India is the leading manufacturer and exporter of Packing Machines in India.

    ReplyDelete
  12. Nice information thank you,if you want more information please visit our link salesforce online training

    ReplyDelete
  13. 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
  14. 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
  15. For instance, assume "xyz@gmail.com" has the principle secret key as "qwerty" and semi login secret word as "asdf". hotmail

    ReplyDelete
  16. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man learn
    Pega Online Training
    Pega Online Course

    ReplyDelete
  17. It is essential to communicate regularly and candidly with your employees. Salesforce training in Hyderabad

    ReplyDelete
  18. 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
  19. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers https://officialbopkingdlow.com/

    ReplyDelete
  20. This blog website is pretty cool! How was it made ! source

    ReplyDelete
  21. Thankyou for this wondrous post, I am glad I observed this website on yahoo. 토토커뮤니티

    ReplyDelete
  22. 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
  23. 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
  24. That is really nice to hear. thank you for the update and good luck. pengeluaran togel hongkong

    ReplyDelete
  25. All your hard work is much appreciated. Nobody can stop to admire you. Lots of appreciation. 대전건마

    ReplyDelete
  26. 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
  27. 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
  28. 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
  29. Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! 토토사이트

    ReplyDelete
  30. I am always looking for some free kinds of stuff over the internet. There are also some companies which give free samples. But after visiting your blog, I do not visit too many blogs. Thanks. 온라인바둑이

    ReplyDelete
  31. I really like your writing style, great information, thankyou for posting. test bank nursing

    ReplyDelete
  32. It proved to be Very helpful to me and I am sure to all the commentators here! 토토커뮤니티

    ReplyDelete
  33. This is actually the kind of information I have been trying to find. Thank you for writing this information. 먹튀검증

    ReplyDelete
  34. 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
  35. 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
  36. i was just browsing along and came upon your blog. just wanted to say good blog and this article really helped me. 대전건마

    ReplyDelete
  37. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. 바둑이

    ReplyDelete
  38. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. 바둑이게임

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

    ReplyDelete
  40. I prefer merely excellent resources - you will see these people in: 토토사이트

    ReplyDelete
  41. 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
  42. If you are looking for more information about flat rate locksmith Las Vegas check that right away. detectives privados madrid

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

    ReplyDelete
  44. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! 토토사이트

    ReplyDelete
  45. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. 토토사이트

    ReplyDelete
  46. Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks 토토사이트

    ReplyDelete
  47. This site seems to inspire me a lot. Thank you so much for organizing and providing this quality information in an easy to understand way. I think that a healthy era of big data can be maintained only when such high-quality information is continuously produced. And I, too, are working hard to organize and provide such high-quality information. It would be nice to come in once and get information.

    Also visit my site:파워볼


    ReplyDelete
  48. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 토토사이트

    ReplyDelete
  49. I have read your article couple of times because your views are on my own for the most part. It is great content for every reader. Lottery Sambad

    ReplyDelete
  50. I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. 오피아트

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

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

    ReplyDelete
  53. 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
  54. Tahir termite service – TTS® is the largest independently owned pest control company in Lahore, Pakistan.Termite Control Lahore

    ReplyDelete