Active IQ Unified Manager Discussions

Parsing Data from one command to other in WFA

NV78
1,745 Views

I'm trying to parse data from one command to other in WFA(logging into a server and want to pass the session ID to next command). Any possibilities? If so please respond.

1 REPLY 1

mbeattie
1,525 Views

Hi,

 

It the command that creates your session you can add:

 

Add-WfaWorkflowParameter -Name "SessionID" -Value $sessionId -AddAsReturnParameter $True

In the subsequent command in the workflow you can enumerate the return paramater value:

$sessionID = Get-WfaWorkflowParameter -Name "SessionId"

You can also variablize the return parameter names as inputs to your command (if used within a repeat row). See:

 

https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/WFA-Return-parameters-from-a-repeated-row/td-p/142696

 

Hope that helps

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public