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!
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!
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.
Close, take a look at this tutorial to learn the technique: Dynamic Input Values Based on other Inputs
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.
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.
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!
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..
OK I'm too late, hadn't refreshed my browser 🙂
Nice you figured it out.
Enjoy using vRO!
Certainly.
and here's what the workflow looks like in vSphere web client.
Exactly what i was looking for!