Summary:

A Javascript error may occur on filing an email from a sender that does not have a corresponding record in CRM.

Symptoms:

The following error will occur on selecting a Person record:

Actual result (please include text of any error message):

Script error

Line 1
Char 2302

Error: Unable to get value of the property 'value': object is null or undefined

URL: http://server/crm/eware.dll/Do?Act=6011&objectId=-1&SID=12345&contextEntityId=-1&contextRecordId=-1

 

Cause:

The issue was caused by missing values for cmli_comm_companyid and _HIDDENcmli_comm_companyidTEXT in the getSelection function.

Work around:

Use the following to replace the FileIT->filecrm caption in Administration -> Customization -> Translations.

E-mail Target
<script>
window.attachEvent("onload", function () {

     if (document.location.href.indexOf("Act=6011")>-1) {

         if (!getElm("cmli_comm_companyid")&&!getElm("_HIDDENcmli_comm_companyidTEXT")) {

             var dummy1 = document.createElement("input");
             with (dummy1) { type = "hidden"; id = "cmli_comm_companyid"; value = ""; }

             var dummy2 = document.createElement("input");
             with (dummy2) { type = "hidden"; id = "_HIDDENcmli_comm_companyidTEXT"; value = "";}

             getElm("_Datacmli_comm_personid").appendChild(dummy1);
             getElm("_Datacmli_comm_personid").appendChild(dummy2);
         }
     }
});
function getElm (a) { return document.getElementById(a);}
</script>