VMware Cloud Community
jeep2004
Enthusiast
Enthusiast

Rest Host - powershell - output

Hi

I am using a VRO to connect "rest host" with PowerShell 

the script output the info  "hard drive1" with name variable "Report" 

I need to get my output  from Powershell to next Variable with a new "Scriptable task" 

how I do it to get my info in next element ? 

0 Kudos
1 Reply
Shen88
Hot Shot
Hot Shot

@jeep2004,
To get the output from PowerShell to the next variable with a new “Scriptable task”, you can follow these steps:

  1. In the Scriptable task, click the In tab.
  2. Click Add to add a new input parameter.
  3. In the Add Input Parameter dialog box, enter a name for the input parameter and select the data type that matches your output from PowerShell.
  4. Click OK to save the input parameter.
  5. In the Scriptable task, click the Out tab.
  6. Click Add to add a new output parameter.
  7. In the Add Output Parameter dialog box, enter a name for the output parameter and select the data type that matches your output from PowerShell.
  8. Click OK to save the output parameter.

You can now use these input and output parameters in your script to pass data between tasks. I hope this helps!

If you think your queries have been answered, Mark this response as "Correct" or "Helpful" and consider giving kudos to appreciate!

Regards,
Shen
0 Kudos