SFDCinSeatown

Blogging about Salesforce from the land of Craft Beer and Fine Coffee!

Sidebar

Recent Posts

  • Parsing Stuff with Flows (Part 2)
  • Parsing Stuff with Flows (Part 1)
  • Clone User – Lightning Awesome
  • Smarter Text in Flows
  • You know who likes innovating? I like innovating.

Recent Comments

atjohnson9 on Fuzzy Searching in Salesforce…
Matt on Fuzzy Searching in Salesforce…
atjohnson9 on Calculating number of months b…
Sarah D on Calculating number of months b…
Parsing Stuff with F… on Parsing Stuff with Flows (Part…

Archives

  • August 2017
  • December 2016
  • October 2016
  • July 2016
  • June 2016
  • February 2016
  • December 2015
  • September 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • December 2013

Categories

  • Admin Work
  • Administrivia
  • Apex
  • App
  • automagically
  • By Request
  • case
  • CPQ
  • data
  • data clean up
  • Deals and Stuff
  • Email Alerts
  • Formulas
  • Humble Pie
  • Lightning
  • Login Flow
  • Microsoft
  • Mind Blown
  • Oracle
  • Process Builder
  • reports
  • Salesforce
  • super sweet
  • task
  • Uncategorized
  • Visual Flows
  • visualforce
  • Workflows

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

SO Cool

Using Login Flows for something other than security!

Standard

At Dreamforce 2014 I was present at the session for Login Flows, and stared slack jawed at the awesomness that was presented. Interestingly enough, even though Yubico and Twillio were focusing on two factor authentication (Super Cool) and Login Flows are found under “security”, my mind was thinking about anything but…

How many days

Just Kidding!

Here are a couple scenarios that bounced around:

1) Acknowledgements

2) Opt Outs

3) Tailored, ultra specific alerts

But, today happened and while digging around in Salesforce trying to fix something totally unrelated, I found that I have access to login flows.

 

So Excited!

ERMAHGERD So excited to use this meme!

Yep, pretty much!

 

But, a coworker was all like “But, can you use it to give me my daily Dilbert cartoon”. So excited changed to Challenge Accepted!

Challenge Accepted

I accept this challenge!

Thus, I present to you my first login flow…”Give me my daily dilbert”.

Here is what you will doing:

1) Creating a throw away profile for testing

2) Creating a new flow with a screen, display text and formula

3) Creating a new login flow record

The end result will be a second screen presented after login that has a dynamic URL for the daily dilbert. Start to Finish, 40 Minutes!

OK kids, fasten your seat belts, here we go!

Step 1 – Create a throw away profile.

This is pretty straight forward. Find a profile you want to use and clone it. Make sure it can run flows and all that other goodness.

Step 2 – Create a new flow.

2.A Name it something clever:

Clever Flow Nam

Clever!!!!

2.B Create a new formula element and call it “CurrentDate”

2.C Use this formula in this element:

be sure to retype the quotes – Thanks Julie!

TEXT(YEAR({!$Flow.CurrentDate}))&”-“&

TEXT(MONTH({!$Flow.CurrentDate}))&”-“&

IF(
LEN(TEXT(DAY({!$Flow.CurrentDate})))=1,
“0”&TEXT(DAY({!$Flow.CurrentDate})),
TEXT(DAY({!$Flow.CurrentDate}))
)

BASK in the formulaic glory!

BASK in the formulaic glory!

2.D Save it

2.E Drag a screen element onto the work surface and give it a common sense name

Common Sense? Check!

Common Sense? Check!

2.F Add a display text element

Display text, salesforce flows

No Caption Needed

2.G Type in the words “Daily Dilbert” or whatever you want.

2.H Highlight the freshly typed words, and then click the Hyperlink box. enter in http://www.dilbert.com/strips/comic/{!CurrentDate}

Hyperlink

Creating the Hyperlink

Add your variable

Add the variable for the formula you created earlier!

2.I Click OK, set the screen to the starting element, then save everything.

Before step 3, activate your flow.

Step 3 – Create the Login Flow

3.A Navigate to the Flow Login Page (Administration Setup > Security Controls > Login Flow) and click NEW

Where it's At

Oh, that’s where it is!

3.B Give it a common sense name

3.C Associate this flow with a license and your throw away profile created earlier

3.D Save it!

IT LIVES!

Well, hullo yourself!

Now, you will want to associate a user you can login with (but not your own) with the newly created profile.

Once you get everything setup, login at the user and enjoy your new functionality (oh Dilbert, you are hilarious!).

Test User

Yep, that Richard Sherman!

Finished Product

Even the Legion of Boom can relate to Dilbert!

 

Advertisement
  • Date November 6, 2014
  • Tags Admintainable, ButtonClickAdmin, Clicks Not Code, ClicksNotCode, ClicksNotCodeFTW, DF14, Flow, Salesforce, Salesforce.com, SFDC, SFDCFTW, SO Cool
  • Comments 6 Comments
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • SFDCinSeatown
    • Join 42 other followers
    • Already have a WordPress.com account? Log in now.
    • SFDCinSeatown
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...