web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Aeon Nexus CRM / Set Unresolved Email in par...

Set Unresolved Email in party List using Java Script

Royal King Profile Picture Royal King 27,686

While doing google search this morning i found below trick to set unresolved email address on the partylist lookup field

http://mscrmbi.blogspot.com/2014/03/set-unresolved-email-ids-in-party-list.html

function setUnresolvedRecipient(unresolvedemail) {
        var obj = new Object(); //create the unresolved object
        obj.name = unresolvedemail;
        obj.category = 3;
        obj.data = unresolvedemail;
        obj.type = "9206";
        var toField = Xrm.Page.getAttribute("to");
        var toValue = toField.getValue();
        if (toValue != null) {
            toValue.push(obj); //if there are already other values, add to it
            toField.setValue(toValue);
        }
        else {
            toField.setValue([obj]); //if 'to' field is null, just override it
        }       
}


This was originally posted here.

Comments

*This post is locked for comments