Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Retrieves the resource element as a mime attachment from the specified input parameter (resourceElement).
var content = resourceElement.getContentAsMimeAttachment();
System.debug('The resource element ' + + ' has been returned with the mime type ' + content.mimeType)
content.mimeType = mime;
// Sets the mime attachement to the type specifed from the input parameter (mime).
System.log('The resource element ' + + ' mime type type has been set to ' + mime)]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment