Automation

 View Only
  • 1.  Rest Host - powershell - output

    Posted Mar 20, 2023 09:12 AM

    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 ? 



  • 2.  RE: Rest Host - powershell - output

    Posted Mar 28, 2023 10:22 PM

    ,
    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!