Dynamics CRM 2011 Quick-Tip: Double-clicking e-mail addresses

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:

image

Results in a standard Outlook e-mail message being opened:

image

 

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.

3 Responses

  1. 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

  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>