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

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Set PartyList field To in Email in CRM 2015 (and earlier)

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Sample code to set the PartyList field for Email Activity.


function setContact() {

var partlistData = new Array();
partlistData[0] = new Object();

// guid of the record
partlistData[0].id = "8B2AD82B-30D6-E511-811F-3863BB356F90";

// name of the record
partlistData[0].name = "Hugh Grant";

// entity schema name
partlistData[0].entityType = "contact";
Xrm.Page.getAttribute("to").setValue(partlistData)

}

Hope it helps..


Filed under: CRM, CRM 2011, CRM 2013, CRM 2015, Microsoft Dynamics CRM Tagged: CRM, CRM 2011, CRM 2013, CRM 2015, CRM 4.0

This was originally posted here.

Comments

*This post is locked for comments