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.
Can anyone help me to check whats wrong in code??