If you are an admin or Salesforce.com developer, no doubt you have multiple logins to manage multiple production, developer, and sandbox orgs, all of which must be unique. In addition, if you use the same email address for your different orgs, it is often difficult to know the sending sfdc org origin of an auto-email that you have received.
For example, check out this Apex governance warning:
So I know that it came from org 005700000012eDf/
The only other clue is that it was sent to mehmet@ergun.net. Since I have a couple of dozen orgs that uses that address, so that's not too helpful either. Now multiply this my lots of orgs, lots of clients, and well ... it can become confusing.
However, I've found a few simple tricks that you can use to simplify multiple org management and keep sane.
Part 1 - Use + Aliases to create unique user names and matching emails
For Gmail users (is there anyone who isn't anymore?!) here is a neat trick that can come in handy for managing multiple Salesforce logins:
Without changing any of your Gmail settings, you can alias the same address by adding a + to your email address before the @ and designate the org name. It also works fine with domain names you have associated with your Gmail account.
For example:
ergunme@gmail.com can be aliased as
ergunme+prodClient1@gmail.com
ergunme+devClient1@gmail.com
ergunme+trainingClient1@gmail.com
Now the trick is for each SFDC Org login use a + alias for your unique user name and make your email address the same as your user name for that particular org.
When you get an email from SFDC you can easily tell which email alias / user name it was sent to:
Part 2 : Managing Your Logins in SFDC
I use a simple SFDC custom object to remember my logins and auto-login in to my different SFDC orgs. That way, I only have to login once to a single ORG.
Simply store your org name, user name, password, and org type in an object and create a custom formula field to enable auto-login by passing the user name (un) and password (pw) as parameters in the login URL.
Here is the formula field:
----------->
HYPERLINK(
Case( org_type__c,
'Production',
"https://login.salesforce.com/?un=" ,
'Development',
"https://login.salesforce.com/?un=" ,
'Sandbox',
"https://test.salesforce.com/?un=" ,' ')
&
substitute(substitute(un__c, '+', '%2b'), '@', '%40') & "&pw=" &
Pw__c
,
"SFDC"
)
<----------------
The HYPERLINK function encodes the URL based on the Org Type, User Name, and Password fields.
The only thing to remember is that the + and @ signs in the URL must be encoded with %2b and %40 which you can easily do using the substitute function.