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

vRO : Duplicate Resource Folder(category) inside another Folder.

$
0
0

I was just playing with vRO in my office. Let me tell you the scenario first:

 

So there is this workflow scheduled to run on daily basis and create 2 files in Resource Element. The requirement is to create folder inside another one and its name should be the date.

Ex. Parent folder name : Routes inside this I need to create another folder with the name like Tue Dec 10 2019 08:39:13 GMT-0000 (UTC) .

 

But the thing is it is creating 2 folder differently with the same name!..... 

here is the sample code i'm executing.

 

var location = "VM Routing Reports/abc";
System.log(location);
createFile(location);
System.sleep(2000);
createFile(location);

function createFile(location){
Server.createResourceElement(location, "hk");
}

 

this code is creating 2 folder with the same in in resource element.

vroissue.png

 

Can anyone help me to check whats wrong in code??


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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