Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 170134

Re: Unable to Read XML File from vCO - Permission Denied

$
0
0

In the design tab of the vCO client there is a resources tab.

You can create a folder there and import any kind of file (I think the limit is 4096 KB).

 

Once done you can add an attribute of type resource element and set it to your file.

 

From a scriptable task you can access the file content like this

 

var xmlString = resource.getContentAsMimeAttachment().content;

 

If you need to change it you can do :

 

var mimeAttachment = new MimeAttachment();
mimeAttachment.content = xmlString;
mimeAttachment.mimeType = "text/xml";
mimeAttachment.name = resource.name;

 

Resource element are stored in the vCO database.


Viewing all articles
Browse latest Browse all 170134

Trending Articles



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