I didn’t actually realize it until this week, but if you double-click on an email address field within Dynamics CRM 2011, it will actually open the default email application ( such as Microsoft Outlook ), and create a new e-mail message.
So double-clicking this email address:
Results in a standard Outlook e-mail message being opened:
I verified that this was not how CRM 4.0 worked.
Anyway, it’s a really cool feature and can be a real time-saver.
Filed under: CRM 2011, Dynamics CRM, Productivity Tagged: | MSDYNCRM
Hi Mitch
Correct, but Jim Wang (I think it was him) showed us how to get CRM 4 to do it with javascript.
//*** email address Double click
fnEmailAddress = function(emailfield)
{
if (emailfield != null)
{
emailfield.style.textDecoration = “underline”;
emailfield.style.color = “blue”;
emailfield.ondblclick = function()
{ var email = emailfield.DataValue;
if ((email != null) && (email.length > 0))
{ window.navigate(“mailto:” + email);
}
}
}
}
fnEmailAddress(crmForm.all.emailaddress1);
fnEmailAddress(crmForm.all.emailaddress2);
fnEmailAddress(crmForm.all.emailaddress3);
//—- for onchange event of each email address
fnEmailMailTo = function(emailfield)
{
if (emailfield.DataValue != null)
{
if (emailfield.DataValue.substring(0,7) == “mailto:”)
{
emailfield.DataValue = emailfield.DataValue.substring(7,(emailfield.DataValue.length));
}
}
}
the onchange event then had
fnEmailMailTo(crmForm.all.emailaddress1);
correct field name in it
Regards
Pete
That’s a nice tip. It works with the website field too.
Thanks Nicole. It’s actually always worked with the website field. The email enhancement is new to CRM 2011.