Setting Activity Party field in Email in JavaScript

There seems to be a change in the way we used to populate Activity Party fields in an email. Other than the id, name, entitytype we now also need to pass object code for the record whom we want be added in any of the activity party fields. Mentioned below code shows the snippet that needs to be followed.

function setFrom() {
var partlistData = new Array();
partlistData[0] = new Object();
partlistData[0].name = “Nameofuser”; //(Name value)
partlistData[0].entityType = “systemuser”;// (entity name)
partlistData[0].type = “8”; // (object type code 8 is for system user)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s