VMware Cloud Community
anoopvb
Enthusiast
Enthusiast
Jump to solution

customized dropdown as an input parameter

So i've been asking quite a few questions today. Still getting up to speed on vCO.

The workflow I am creating ties into a PowerShell module I've written that talks to a restAPI.

The customer provides a Vc:VirtualMachine object and I am now able to collect the Cluster name, vcenter hostname for the vm.

What i'd like to do is provide a dropdown as an input parameter with custom selections that I can provide as text.

Is that something i can do easily or do i have to bind it to something? is there a tutorial on doing this? i'm sure this question has been asked before.

many thanks! great community!

0 Kudos
1 Solution

Accepted Solutions
anoopvb
Enthusiast
Enthusiast
Jump to solution

I think i figured it out.

the input parameter should be of type String.

the presentation will have a predefined list of answers that will be an array.

thanks again!

View solution in original post

0 Kudos
7 Replies
anoopvb
Enthusiast
Enthusiast
Jump to solution

I think I got it.

I can create an Array/String input parameter and in the Presentation Section, i can set it as Mandatory (optional) and also insert values there.

Is that right?

Thanks all.

0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

Close, take a look at this tutorial to learn the technique: Dynamic Input Values Based on other Inputs

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
anoopvb
Enthusiast
Enthusiast
Jump to solution

I think i'm close too.

I saw the post earlier but it looked like the input parameter specifed was AD:User where as mine is just a string.

My resulting workflow looks like this which isn't what i'm looking for.

Screen Shot 2015-03-26 at 5.08.52 PM.png

my input parameter is Array/String type and in the Presentation, i've got a property set for "Predefined Answers" with the Array["choice1", "choice2"]

choice1 and choice2 are static. They aren't derived from anything else if that matters.

0 Kudos
anoopvb
Enthusiast
Enthusiast
Jump to solution

I think i figured it out.

the input parameter should be of type String.

the presentation will have a predefined list of answers that will be an array.

thanks again!

0 Kudos
ChristianWehner
VMware Employee
VMware Employee
Jump to solution

Could you share a screen of your current presentation tab?

I don't have a vCenter server here for testing so my presentation looks a bit different..

0 Kudos
ChristianWehner
VMware Employee
VMware Employee
Jump to solution

OK I'm too late, hadn't refreshed my browser 🙂

Nice you figured it out.

Enjoy using vRO!

0 Kudos
anoopvb
Enthusiast
Enthusiast
Jump to solution

Certainly.

Screen Shot 2015-03-26 at 5.41.18 PM.png

and here's what the workflow looks like in vSphere web client.

Exactly what i was looking for!

Screen Shot 2015-03-26 at 5.42.07 PM.png

0 Kudos