I have several workflows that have a number of drop down menu selections on the presentation layer that are populated based on selections for other menus (eg. Selecting a customer from one menu will populate the next with all the VMs in that customers folder). However, I am finding that I am having to repeat lots of script in the actions attached to these menu items or in the workflow itself.
For example, when selecting a VM from the menu mentioned previously the action I have attached to it will return an array of all VM objects and then push the name property from each into another array and then return this as an array of strings to create the drop down menu. When the workflow starts I then have to convert the string back into a VM object in order to work with the VM. Given that I already created the array of VM objects, is there any way to reuse it when created in the presentation layer? Can I pass that array of objects to another parameter on the presentation layer for manipulation by another action?
Thanks,
Chris.