Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

use vco resource as mail attachment

$
0
0

Hello I want to store all my orchestrator procedures in the resource store of VCO

and when I send a request to a team by mail I send the doc (pdf) attached in the mail

in the resource, the element  file is recognised as "mime type" = application/pdf

I have modified the "sent mail" workflow adding those lines 

 

var fileAttachment = new MimeAttachment(); if(mimeRessource){//mimeRessource is the resource element fileAttachment.name = mimeRessource.name; fileAttachment.content = mimeRessource.getContentAsMimeAttachment(); message.addMimePart(fileAttachment,"text/html; charset=UTF-8");

 

 

but the file cannot be read by the user who open the mail

the error in adobe reader is "the file is not recognized as a pdf"

 

 

sure I am missing something


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>