locked
(2011) Email Attachment - Updating Code for RU12 that uses ObjectId and ObjectTypeCode RRS feed

  • Question

  • Hello,

    I am upgrading our JavaScript code to install RU 12 and I am having difficulties trying to rewrite my email attachment code that uses the deprecated activitymimeattachment attribute.

    Here is my code. Is anyone able to point in the right direction in how to update this code so I can install RU 12? Thank you very much in advance!

        //Email attachment parameters
        var activitymimeattachment = Object();
        activitymimeattachment.ObjectId = Object();
        activitymimeattachment.ObjectId.LogicalName = "email";
        activitymimeattachment.ObjectId.Id = email.ActivityId;
        activitymimeattachment.ObjectTypeCode = "email";
        activitymimeattachment.Subject = "File Attachment";
        activitymimeattachment.Body = encodePdf(params);
        activitymimeattachment.FileName = "SampleFile.pdf";
     


    Mike Karls

    Tuesday, April 1, 2014 2:02 PM