Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Advanced Services: Using an Action to populate a dropdown?

$
0
0

Hello all,

 

Hope everyone had a great Thanksgiving (If you celebrated!). Personally I think I gained about 18 pounds!

I am trying to use the Advances Services to create a custom form that will allow me to take input and use it to create details about the workload to be deployed. Hopefully eliminating the need for many catalog items for a single flavor of an O/S to one where environment(Lifecycle), Server Tier (App, Web, DB, etc.) among other specifics can be selected and the appropriate machine prefix/hostname be assigned.

Where I am getting stuck is getting the Service Blueprint's form to use a vRO Action to query the database to get the unique Labels and Values for the dropdown.

I created a new action and in it I am doing the below:

 

Action001.PNG

This is a very generic query so I have named the Action QueryDatabase

Action002.PNG

As you can see what I am doing is returning the values from the database "corpa.cmdb" (The Database has been configured as a shared connection in Orchestrator.)

With a select statement "Select Designation from dbo.Env", I cut down returning both fields to see if that was the issue but both ways this has not worked.

The original select statement was "Select Designation, Description from dbo.Env", with the expectation for the dropdown the Designation would be used for the Value and Description would be used for the Label (So much for thinking logically!)...

While I can execute the query in SQLMGR and get the results I expect

Action003.PNG

What I am getting within the action is nothing (No results).

Do I have the wrong return type?

I have tried both Array/String and Array/SQL:ActiveRecord with the later not being accepted as a source for the dropdown.

Is my scripting incorrect?

Can someone help get me on the right track to getting this to work?

Assistance is greatly appreciated!

 

Thank you,

Bill S.


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>