VMware Cloud Community
Michael_Rudloff
Enthusiast
Enthusiast
Jump to solution

Search workflow based on ID

Is there a way to search a workflow in the vCO based on its ID ?

The normal vCO search doesn't seem to be able to find it, nor does the advanced search

Capture.PNG

___ My own knowledge base made public: http://open902.com
Reply
0 Kudos
1 Solution

Accepted Solutions
schepp
Leadership
Leadership
Jump to solution

Strange,

both run fine for me.

Try to import the attached workflow and test it.

View solution in original post

Reply
0 Kudos
5 Replies
schepp
Leadership
Leadership
Jump to solution

Hi,

you could write a workflow to find your workflows by id Smiley Wink

Server.getWorkflowWithId(ID);

This will return the workflow.

Tim

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Displaying the ID of the workflow is quite a recent feature so it may not be searchable yet.

You can do a

System.log(Server.findForType("Workflow", workflowId).name);

To find the name of the workflow ans search for it.

You can also use the rest API from your browser:

https://hostname:8281/vco/api/workflows/

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Michael_Rudloff
Enthusiast
Enthusiast
Jump to solution

Thanks guys,

both examples give me an error "missing ) after argument list" ...

___ My own knowledge base made public: http://open902.com
Reply
0 Kudos
schepp
Leadership
Leadership
Jump to solution

Strange,

both run fine for me.

Try to import the attached workflow and test it.

Reply
0 Kudos
Michael_Rudloff
Enthusiast
Enthusiast
Jump to solution

Tim Scheppeit wrote:

Strange,

both run fine for me.

Try to import the attached workflow and test it.

Not sure what I did wrong, but it does indeed work - thanks a lot Smiley Happy

___ My own knowledge base made public: http://open902.com
Reply
0 Kudos