The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Unable to get parameter value added using Add-WorkflowParameter and Get-WorkflowParameter

Rutul

Unable to get the value using Add-Workflow Parameter and Get-WorkflowParameter wfa commands. 

 

In one of the command I used 

 

Add-WfaWorkflowParameter -Name "PolicyName" -Value $VserverName+"_ESX" -AddAsReturnParameter $true

 

And in other command I need this policy name value and I wrote 

 

$ExportPolicy=Get-WfaWorkflowParameter -Name "PolicyName"

 

But it is unable to get any value.

 

 

4 REPLIES 4

paragp

Rutul, these value are avaiable only when the worklfow is executing and not during preview of the workflow or planning. Also the command with "Get" should be after the command with "Add" in the workflow execution.I used the two lines you have mentioned in two different commands and can see that the value available in the second command.

 

Parag

Rutul

I got what you are saying . I have used the same way. But still it is throwing error as Could not get the value for parameter Policy Name 

Rutul

So you mean Both Add and Get commands should be used in single command and then i can use that in different command ? 

paragp

No, Add and Get are usually to be used in different commands. The only condition is that  the command with Add should be before the command with Get in the workflow. And you can see the values only when you execute the workflow.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public