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

How to read Workflow IDs from particular Folder?

$
0
0

Hi All,

 

       I'm trying to read Workflow IDs from particular Folder (Ex.: Two folders are there Library & MyWorkflows, I want to read workflow ids from MyWorkflows). I saw below code, but this returns all the workflows from VCO.

 

 

var workflowId = "";

 

var workflows = System.getModule("com.vmware.library.workflow").getAllWorkflows();

 

foreach(var wf in workflows) {

if(wf.name == workflowName) {

  workflowId = wf.id;

}

}

Thanks in advance,

Viewing all articles
Browse latest Browse all 6251

Trending Articles



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