<?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 WFA Return Parameters LUN ID in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146497#M26649</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a workflow which creates a volume/lun and maps it to an existing igroup, I want it to return the LUN id used (as I dont specify it), I have played with return parameters section but I cannot find the parameter value.&lt;/P&gt;
&lt;P&gt;Hoping I cannot be the first person wanting to do this?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Any help would be much appreciated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 12:51:38 GMT</pubDate>
    <dc:creator>John_Blackwell</dc:creator>
    <dc:date>2025-06-04T12:51:38Z</dc:date>
    <item>
      <title>WFA Return Parameters LUN ID</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146497#M26649</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a workflow which creates a volume/lun and maps it to an existing igroup, I want it to return the LUN id used (as I dont specify it), I have played with return parameters section but I cannot find the parameter value.&lt;/P&gt;
&lt;P&gt;Hoping I cannot be the first person wanting to do this?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Any help would be much appreciated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:51:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146497#M26649</guid>
      <dc:creator>John_Blackwell</dc:creator>
      <dc:date>2025-06-04T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: WFA Return Parameters LUN ID</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146508#M26651</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of different methods to achieve the outcome you want. You can find the solutions in the following links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/WFA-Return-parameters-from-a-repeated-row/td-p/142696" href="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/WFA-Return-parameters-from-a-repeated-row/td-p/142696" target="_blank"&gt;https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/WFA-Return-parameters-from-a-repeated-row/td-p/142696&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Return-LunId-from-Map-LUN-in-WFA/td-p/138732" href="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Return-LunId-from-Map-LUN-in-WFA/td-p/138732" target="_blank"&gt;https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Return-LunId-from-Map-LUN-in-WFA/td-p/138732&lt;/A&gt;&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>Fri, 08 Feb 2019 09:36:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146508#M26651</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-02-08T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: WFA Return Parameters LUN ID</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146517#M26652</link>
      <description>&lt;P&gt;Many thanks for this, so I have cloned the certified command for map lun and added the section at the bottom then in the workflow gone to the return parameters tab and added LunId but for some reason it seems to errors with the below, i guess I am doint something wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Failed to evaluate workflow return parameter value 'LunId'&lt;BR /&gt;Location: 'LunId' return parameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;param (&lt;BR /&gt; [parameter(Mandatory=$true, HelpMessage="Cluster name or IP address")]&lt;BR /&gt; [string]$Cluster,&lt;BR /&gt; &lt;BR /&gt; [parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]&lt;BR /&gt; [string]$VserverName,&lt;BR /&gt; &lt;BR /&gt; [parameter(Mandatory=$true, HelpMessage="Volume name")]&lt;BR /&gt; [string]$VolumeName,&lt;/P&gt;
&lt;P&gt;[parameter(Mandatory=$false, HelpMessage="Qtree name")]&lt;BR /&gt; [string]$QtreeName,&lt;/P&gt;
&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="LUN name")]&lt;BR /&gt; [string]$LunName,&lt;/P&gt;
&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Name of the igroup to map the initiator to")]&lt;BR /&gt; [string]$IgroupName,&lt;BR /&gt; [parameter(Mandatory=$false, HelpMessage="LUN id")]&lt;BR /&gt; [string]$LunId&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Get-WFALogger -Info -message $("Connecting cluster : " + $Cluster)&lt;BR /&gt;Connect-WfaCluster -Node $Cluster -Vserver $VserverName&lt;BR /&gt; &lt;BR /&gt;if ($QtreeName)&lt;BR /&gt;{&lt;BR /&gt; $LunPath = "/vol/" + $VolumeName + "/" + $QtreeName + "/" + $LunName&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{ &lt;BR /&gt; $LunPath = "/vol/" + $VolumeName + "/" + $LunName&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Get-WFALogger -Info -message $("Mapping LUN : " + $LunName)&lt;BR /&gt;if($LunId)&lt;BR /&gt;{&lt;BR /&gt;Add-NcLunMap -Path $LunPath -InitiatorGroup $IgroupName -VserverContext $VserverName -Id $LunId&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;Add-NcLunMap -Path $LunPath -InitiatorGroup $IgroupName -VserverContext $VserverName&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#' return LunID to WFA&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Add-WfaWorkflowParameter -Name "LunId" -Value $LunId -AddAsReturnParameter $True&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 13:24:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Return-Parameters-LUN-ID/m-p/146517#M26652</guid>
      <dc:creator>John_Blackwell</dc:creator>
      <dc:date>2019-02-08T13:24:29Z</dc:date>
    </item>
  </channel>
</rss>

