Hello, I'm trying to add an attachment to an activity party
Here is the code:
....email.email_activity_parties = activityParties;....
function CreateEmailAttachment() {
//get reporting session and use the params to convert a report in PDF
var params = getReportingSession();
//Email attachment parameters
var activitymimeattachment = Object();
activitymimeattachment.ObjectId = Object();
activitymimeattachment.ObjectId.LogicalName = "email";
activitymimeattachment.ObjectId = email.activitypartyid;
activitymimeattachment.ObjectTypeCode = "email",
activitymimeattachment.Subject = "File Attachment";
activitymimeattachment.FileName = "Commande.pdf";
activitymimeattachment.MimeType = "application/pdf";
encodePdf(params, activitymimeattachment);
//Attachment call
}
But I cannot retrieve the id of the activity party to join my attachment.
This is undefined : activitymimeattachment.ObjectId = email.activitypartyid;
Any ideas?
Thx in advance for your help
*This post is locked for comments