Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Convert Object to String

$
0
0

 

Hey Guys - I’m beating my head against the wall on this workflow I’ve been working on for a week and wondering if someone can point me in the right direction.  I’m  simply trying to figure out how to take the input (VC:VirtualMachine) from one element within the workflow and convert it to a string (hostNameOrIP) for use in the next element in the same workflow.  

 

Here’s a bit of context:

 

The overall workflow has the Copy File to Guest workflow followed by Run an SSH Command workflow in it.  The Copy File to Guest uses an input parameter as VC:VirtualMachine; however, I want to carry that VM name to the next portion of the workflow but the Run SSH Command wants the format as a string.  It seems to stupidly simple but I’m wracking my brain on this.   Attached is the logical layout of the workflow - I'm wondering if I need a scriptable task between the two elements/nested workflows that does the conversion or is there a way to have the first nested workflow output the name as a string and then use an output for an input??Workflow.png


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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