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…
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!
But, a coworker was all like “But, can you use it to give me my daily Dilbert cartoon”. So excited changed to Challenge Accepted!
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:
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}))
)
2.D Save it
2.E Drag a screen element onto the work surface and give it a common sense name
2.F Add a display text element
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}

Creating the Hyperlink
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
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!

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!).

Yep, that Richard Sherman!
Thanks for sharing this! I was trying to use your formula for the current date, copied and pasted it in but it keeps giving me a syntax error? Any ideas on what I might have done wrong?
Thanks Julie R
The Seed Company
Hi Julie,
Appreciate the comment! Always neat to hear that the blog is being looked at!
Couple further questions for troubleshooting.
1) are you receiving the error upon saving or upon running the flow?
2) is your formula component set to text?
andrew
1) I receive it upon saving it, running it works fine. It will not allow me to Activate it, only says it is a draft.
2)Yes, this is what I have as my formula.
TEXT(YEAR({!$Flow.CurrentDate}))&”-“&
TEXT(MONTH({!$Flow.CurrentDate}))&”-“&
IF(
LEN(TEXT(DAY({!$Flow.CurrentDate})))=1,
“0”&TEXT(DAY({!$Flow.CurrentDate})),
TEXT(DAY({!$Flow.CurrentDate}))
)
Hey Julie,
Are you on the success community? Some screen shots would help, and that is a good place to do it!
Andrew
This is me!
https://success.salesforce.com/profile?u=00530000001sGiLAAU