Skip to content
Welcome
  • Home
  • about the author
The OpsCorner
The OpsCorner
  • Home
  • about the author

The OpsCorner

A documentation repository of loosely related topics

  • Home
  • about the author
Software / Technology

vRealize Orchestrator – RestAPI Action to Input Form Field

- October 23, 2019 | March 20, 2020 - Bryan McClellan

I have come back to vRealize Orchestrator after some time as I have colleagues that use the product. I have always found it fairly tough to use as it is highly dependent on Javascript and I dont really spend much time writing in Javascript. As well as Javascript documentation is generally web focused I find and that is not helpful for vRo.

Here is a little project I created to populate a single selection (radio in this case) option in vRo workflow from a Device42 Customer API call. The idea being that you could query out via rest, get a list of predefined customers and use that as the selections.

The challenge is that the input form external field needs an action and not a workflow. I basically reverse engineered the "Invoke Dynamic REST Operation" workflow's scripted task.

While the example here uses Device42 the concept and code would be relatively similar for any type of REST API with a JSON content returned.

This took some work. Here are the fruits of the labor.

Just take me to the code

Create getDev42Customers vRo Action using script at the bottom with the required inputs shown below.

image

Configure the input form with External value and the getDev42Customers with its input

image

The action setup will result in the list array being populated by the Customer Names

And here is embedded code.


Post navigation

Ansible Playbook Basics
Ansible – Manage Active Directory Group Membership

Recent Posts

  • Dell OpenManage Enterprise API PowerShell Scripts September 18, 2020
  • Ansible Workshop from Anywhere August 31, 2020
  • VMware Webinar Series July 27, 2020
  • Using the default VMware-Privileged PodSecurityPolicies on TKG June 30, 2020
  • VM Template Updater with Ansible April 24, 2020

Tags

Active Directory Ansible Automation azure-devops Brocade Dell Device42 Fiber Channel Free Code Kelverion Kubernetes NSX NSX VMware powershell Python SANnav Scripts servicenow source-control Tanzu TKG Tower Vagrant VMware vRo VSCode vsphere

Site Pages

  • about the author
© 2026 The OpsCorner | Built with Xblog Plus free WordPress theme by wpthemespace.com