<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Return parameters for operation results in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129683#M23395</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best way to properly generate the output when listing snapshots for a specific volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the error that is being thrown :&amp;nbsp;&lt;SPAN&gt;Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Value'. Specified method is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is NOT generated at the Get-WfaLogger cmdlet. This error is being thrown by Add-WfaWorkflowParameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code has problems at the 2 cmdlets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 15:31:44 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2017-03-31T15:31:44Z</dc:date>
    <item>
      <title>Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66373#M13809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a custom command in WFA for polling two controllers for option differences. I have the results in an array, but I'm having a hard time figuring out how to get that output to the workflow user. I see the return parameters tab in the workflow results window and I'm wondering how I can get the results into that tab so the user can see the differences. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 16:26:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66373#M13809</guid>
      <dc:creator>MPARDINIRTP</dc:creator>
      <dc:date>2014-05-08T16:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66378#M13813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is possible in WFA 2.2RC and onwards.&amp;nbsp; If you are using powershell commands you will need to add this line in your command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add-WfaWorkflowParameter -Name volumeOptions -Value $volOptions -AddAsReturnParameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for perl it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $wfaUtil = WFAUtil-&amp;gt;new();&lt;/P&gt;&lt;P&gt;$wfaUtil-&amp;gt;addWfaWorkflowParameter(‘volumeOptions’, $volOptions, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The Add-WfaWorkflowParameter and Get-WfaWorkflowParameter are primarily used for transferring information between commands during execution. The last parameter -AddAsReturnParameter adds the value as a return parameter to the workflow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 05:07:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66378#M13813</guid>
      <dc:creator>paragp</dc:creator>
      <dc:date>2014-05-09T05:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66385#M13819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Add-WfaWorkflowParameter -Name volumeOptions &lt;SPAN style="color: #0000ff;"&gt;-Value $volOptions&lt;/SPAN&gt; -AddAsReturnParameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Value takes only a string argument, and as you said you have an Array, you &lt;STRONG style="color: #ff0000;"&gt;can't&lt;/STRONG&gt; use the array object directly. I suggest you join the array object to a string and then use it in the above command.. Something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Joining on a colon :&lt;/P&gt;&lt;P&gt;$volOptions = $volArray -join ":"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Add-WfaWorkflowParameter -Name volumeOptions &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #008000;"&gt;-Value $volOptions&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt; -AddAsReturnParameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 06:50:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66385#M13819</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-05-09T06:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66389#M13822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info. I'll run an upgrade and try it out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:50:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/66389#M13822</guid>
      <dc:creator>MPARDINIRTP</dc:creator>
      <dc:date>2014-05-09T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/121440#M21812</link>
      <description>&lt;P&gt;Is there any improvements in wfa 4.0 version with&amp;nbsp;&lt;SPAN&gt;Add-WfaWorkflowParameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Francois&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 07:49:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/121440#M21812</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-07-19T07:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122414#M21988</link>
      <description>&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;Anything specific you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 10:40:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122414#M21988</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2016-08-18T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122920#M22075</link>
      <description>&lt;P&gt;I think the main missing thing is&amp;nbsp;add-wfaworkflowparameter accept only [string] type. Array of objects &amp;nbsp;will be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:20:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122920#M22075</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-09-05T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122936#M22077</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8030"&gt;@francoisbnc﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may not be possible for the WFA cmdlets to accomodate other data types like array or hash etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there is a simple way to get this done. You can easily use &lt;FONT color="#008000"&gt;&lt;EM&gt;join and spilt&lt;/EM&gt; &lt;/FONT&gt;methods to join the elements of an array to form a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$a= @("1","2","3")&lt;/P&gt;&lt;P&gt;&amp;nbsp;$value = [System.String]::Join("~",$a) &amp;nbsp;&lt;FONT color="#008000"&gt; #Choose a separator which you are sure not an element in the array. Typically ~ or _ can work,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-WfaWorkflowParameter -Name "MyArray" -Value $Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next command where you want this array, get the value and call split on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$value = Get-WfaWorkflowParameter -Name "MyArray"&lt;/P&gt;&lt;P&gt;$a =&amp;nbsp;$value.Split("~")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you got your Array as you wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar methods are available in Perl for the WFA command in perl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 06:10:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122936#M22077</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-09-06T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122937#M22078</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8030"&gt;@francoisbnc﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you wanted array of Objects &amp;nbsp;and not just an array, did you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not possible with cmdlet, the cmdlet writes this dynamic name-value pair into a file and then fetches this data back to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same join-split can help you in this case too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:01:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122937#M22078</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-09-06T07:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122940#M22081</link>
      <description>&lt;P&gt;Yes it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many return values is difficult to read and maintain, a simple objet or array of objects&amp;nbsp;would simple to manage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:38:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122940#M22081</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-09-06T07:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122988#M22089</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8030"&gt;@francoisbnc﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to pass an object or even a array of objects between WFA commands, powershell itself provided you ways to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Powershell cmdlet&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;EM&gt;Export-Clixml&lt;/EM&gt;&lt;/FONT&gt; to save the object into the file in comamnd-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;EM&gt;Import-Clixml&lt;/EM&gt;&lt;/FONT&gt; to retrieve that object from the above file in command-2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See how to use them&amp;nbsp;&lt;A href="https://blogs.technet.microsoft.com/heyscriptingguy/2011/09/06/learn-how-to-save-powershell-objects-for-offline-analysis/" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp;If you need assistance in using this cmdlets, I can help as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 07:01:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122988#M22089</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-09-07T07:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122992#M22091</link>
      <description>&lt;P&gt;I will have a try. Many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 09:14:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/122992#M22091</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-09-07T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123106#M22108</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8030"&gt;@francoisbnc﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In command-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;#Have an object parameter. Not string but a Powershell Object. You can have any data type, strings, arrays, array of objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$Date = Get-Date&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Export-Clixml -Path ".\date.xml" -InputObject $&lt;SPAN&gt;Date &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#It will create a file date.xml in the WFA temp directory. You can choose any other path as well&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In command-2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;==&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$Date = Import-Clixml -Path ".\date.xml"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#The date object is obtained successfully. Now you can call all methods on this obtained object as you could.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$Date.day&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:44:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123106#M22108</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-09-09T11:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123759#M22233</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9704"&gt;@sinhaa﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Your workaround looks good thanks, but just in case of&amp;nbsp;simultaneous run of same workflow, I have to manage to name of the export file that cannot be the same.&lt;/P&gt;&lt;P&gt;I can add a random number at the end, pass it &amp;nbsp;to the next command with add-wfaparameter,&amp;nbsp;&amp;nbsp;not so simple to have a clear overview of the workflow at the first look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:56:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123759#M22233</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-10-03T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123769#M22237</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8030"&gt;@francoisbnc﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you want to pass an array of variables between WFA commands within a workflow (without using the Add-WfaWorkflowParameter cmdlet) and you are exporting those variables to file locally on your WFA server, then the file name would need to be constant to ensure all the commands in your WFA workflow read the content from the same file name. To achieve that you might consider using the workflow ID as the file name as this is a unique identifier. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$workflowID = $(Get-WfaRestParameter "workflowId")&lt;/PRE&gt;&lt;P&gt;Also you might consider using a system environment variable or reading the registry to determine the file path (or the install location of WFA) as a path to save any temporary files.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#'------------------------------------------------------------------------------
#'Enumerate the WFA install path from the registry
#'------------------------------------------------------------------------------
[String]$registryPath = "hklm:\system\currentcontrolset\services\na_wfa_srv";
[Int]$workflowID      = $(Get-WfaRestParameter "workflowId")
Try{
   [System.Object]$result  = Get-ItemProperty -Path $registryPath -ErrorAction Stop
   [String]$wfaExeSpec     = $result.ImagePath.Split("/")[0].Trim() -Replace("""", "")
   [String]$wfaServicePath = $wfaExeSpec.SubString(0, $wfaExeSpec.LastIndexOf("\"))
   [String]$installPath    = $wfaServicePath.SubString(0, $wfaServicePath.LastIndexOf("\"))
   Get-WFALogger -Info -Message "Enumerated WFA installation Path from Registry key ""$registryPath"" as ""$installPath"""
}Catch{
   Get-WFALogger -Error -Message $("Failed Reading Registry Path ""$registryPath"". Error " + $_.Exception.Message)
   Throw "Failed Reading Registry Path ""$registryPath"""
}
#'------------------------------------------------------------------------------
#'Ensure the workflows XML file exists.
#'------------------------------------------------------------------------------
[String]$fileSpec = "$installPath\$workflowID.xml"
If(Test-Path -Path $fileSpec){
   Get-WFALogger -Info -Message "Reading WFA workflow XML file ""$fileSpec"""
}Else{
   Throw "The WFA workflow XML file ""$fileSpec"" does not exist"
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;Assuming you are creating custom WFA commands, each command can enumerate the current workflow ID and hence read from the correct configuration file which will ensure a uniquie file is created and read from for each workflow in the scenario where the workflow is being executed multiple times as the ID will always be unique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:08:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123769#M22237</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-10-03T23:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123780#M22240</link>
      <description>&lt;P&gt;Did you speak of workflow id or runtime id?&lt;/P&gt;&lt;P&gt;Because, as we gave the WFA console to multiple users, workflows can be launched at the same time with a potential of multiple RW access on file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 07:52:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/123780#M22240</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2016-10-04T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129665#M23389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best way to properly generate the output when listing snapshots for a specific volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since OCUM6 and OCUM7 don't have volume snapshots anymore, I've resorted to querying volume snapshots via WFA4 workflows. We toyed with using a datasource job in WFA4 to do it, but it takes multiple hours for each job run, and puts a strain on our vservers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workflow command basically runs the following (I've purposefully omitted error-handling code, so keep this paste simple):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Connect-WfaCluster $Cluster

$vol = Get-NcVol -Name $VolumeName -Vserver $VserverName
$snaplist = $vol | Get-NcSnapshot

Get-WFALogger -Info -message $("Vserver: " + $VserverName + " Volume: " + $VolumeName + " Snapshots:" + $snaplist)

Add-WfaWorkflowParameter -Name "SnapList" -Value $snaplist -AddAsReturnParameter $true&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Get-WFALogger command only shows the snapshot name for some reason. I had assumed it would show all the default columns. Anyone know why this is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Add-WfaWorkflowParameter obviously fails, and gives me the following error:&lt;/P&gt;&lt;P&gt;ERROR&amp;nbsp; [get volume snapshot list] Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Value'. Specified method is not supported.&lt;BR /&gt;ERROR&amp;nbsp; [get volume snapshot list] Failed executing command. Exception: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Value'. Specified method is not supported.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 13:25:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129665#M23389</guid>
      <dc:creator>jauling_chou</dc:creator>
      <dc:date>2017-03-31T13:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129683#M23395</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best way to properly generate the output when listing snapshots for a specific volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the error that is being thrown :&amp;nbsp;&lt;SPAN&gt;Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Value'. Specified method is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is NOT generated at the Get-WfaLogger cmdlet. This error is being thrown by Add-WfaWorkflowParameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code has problems at the 2 cmdlets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:31:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129683#M23395</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-31T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129684#M23396</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9704"&gt;@sinhaa&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best way to properly generate the output when listing snapshots for a specific volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the error that is being thrown :&amp;nbsp;&lt;SPAN&gt;Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Value'. Specified method is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is NOT generated at the Get-WfaLogger cmdlet. This error is being thrown by Add-WfaWorkflowParameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code has problems at the 2 cmdlets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9704"&gt;@sinhaa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if I misstated myself. I absolutely understand that the two errors are regarding the workflow parameter code. It doesn't like the fact I'm passing an Object[] as a String. I need to somehow take the snapshot list output, and massage it into a String in order to successfully pass it as a WfaWorkflowParamter, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A secondary issue is that the Get-WfaLogger, when I test the WFA cmd, only shows me the snapshot name, which to me seems a bit odd, since Get-NcSnapshot -Template shows 3 columns of data. I'm thinking that might just be how its outputted when it tries to print a table in WfaLogger, not exactly sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:42:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129684#M23396</guid>
      <dc:creator>jauling_chou</dc:creator>
      <dc:date>2017-03-31T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Return parameters for operation results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129689#M23400</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/2573"&gt;@jauling_chou&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the below code. Powershell is a great language, it can do virtually anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Connect-WfaCluster $Cluster

$vol = Get-NcVol -Name $VolumeName -Vserver $VserverName
$snaplist = $vol | Get-NcSnapshot &lt;FONT color="#FF0000"&gt;| Out-String&lt;/FONT&gt;

Get-WFALogger -Info -message $("Vserver: " + $VserverName + " Volume: " + $VolumeName + " Snapshots:" + $snaplist)

Add-WfaWorkflowParameter -Name "SnapList" -Value $snaplist -AddAsReturnParameter $true&lt;/PRE&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:48:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Return-parameters-for-operation-results/m-p/129689#M23400</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-31T16:48:50Z</dc:date>
    </item>
  </channel>
</rss>

