com.deangrant.library.vro/setResourceElementMimeType
// Retrieves the resource element as a mime attachment from the specified input parameter (resourceElement). | |
var content = resourceElement.getContentAsMimeAttachment(); | |
System.debug('The resource element ' + resourceElement.name + ' 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). | |
resourceElement.setContentFromMimeAttachment(content); | |
System.log('The resource element ' + resourceElement.name + ' 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