<?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: variables usable for each command in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100460#M17759</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;Ahh.. you need to give clear details about what exactly are you trying to do. These one liners riddles will not help me give an accurate answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly explain what are you looking to achieve with&amp;nbsp;some degree of detail. &amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok sorry, I'll do my best.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a variable (e.g. $VolumeName) which is accessible the same way a user input is &lt;SPAN&gt;accessible&lt;/SPAN&gt;.&amp;nbsp;E.g.&amp;nbsp;in a Filter or another query.&lt;/P&gt;&lt;P&gt;The workaround with the function will work&amp;nbsp;when&amp;nbsp;I want to receive the value of $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;during run time of&amp;nbsp;the&amp;nbsp;Workflow I want to&amp;nbsp;compute the value for $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;and set $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt; to the computed value. E.g. Using a Query.&lt;/P&gt;&lt;P&gt;And then I want to use the value of $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;in a Filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is how can I declare set $&lt;SPAN&gt;VolumeName&amp;nbsp;&lt;/SPAN&gt;and access it in such an "semi-global" way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping this explains enough. Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2015 10:49:13 GMT</pubDate>
    <dc:creator>berhei</dc:creator>
    <dc:date>2015-02-11T10:49:13Z</dc:date>
    <item>
      <title>variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100449#M17749</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;is there a way to declare and define a variable (e.g. $Username) which can be used in every command of a workflow without using it as user input?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks and best regards&lt;/DIV&gt;&lt;DIV&gt;berhei&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:06:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100449#M17749</guid>
      <dc:creator>berhei</dc:creator>
      <dc:date>2025-06-05T05:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100454#M17754</link>
      <description>&lt;P&gt;This feature of global user inputs is not available in WFA as yet. But you can do it by a workaround by defining a function that returns the value of the Parameter that you would want.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;def param (username)&lt;BR /&gt;{&lt;BR /&gt;return "sinhaa";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can call this fuction in any workflow in any command parameter.&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>Wed, 11 Feb 2015 09:37:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100454#M17754</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-02-11T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100456#M17755</link>
      <description>&lt;P&gt;Thank you &lt;SPAN&gt;sinhaa&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solves one problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can set the username and retrive it later?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:07:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100456#M17755</guid>
      <dc:creator>berhei</dc:creator>
      <dc:date>2015-02-11T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100459#M17758</link>
      <description>&lt;P&gt;Ahh.. you need to give clear details about what exactly are you trying to do. These one liners riddles will not help me give an accurate answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly explain what are you looking to achieve with&amp;nbsp;some degree of detail. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:33:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100459#M17758</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-02-11T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100460#M17759</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;Ahh.. you need to give clear details about what exactly are you trying to do. These one liners riddles will not help me give an accurate answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly explain what are you looking to achieve with&amp;nbsp;some degree of detail. &amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok sorry, I'll do my best.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a variable (e.g. $VolumeName) which is accessible the same way a user input is &lt;SPAN&gt;accessible&lt;/SPAN&gt;.&amp;nbsp;E.g.&amp;nbsp;in a Filter or another query.&lt;/P&gt;&lt;P&gt;The workaround with the function will work&amp;nbsp;when&amp;nbsp;I want to receive the value of $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;during run time of&amp;nbsp;the&amp;nbsp;Workflow I want to&amp;nbsp;compute the value for $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;and set $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt; to the computed value. E.g. Using a Query.&lt;/P&gt;&lt;P&gt;And then I want to use the value of $&lt;SPAN&gt;VolumeName&lt;/SPAN&gt;in a Filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is how can I declare set $&lt;SPAN&gt;VolumeName&amp;nbsp;&lt;/SPAN&gt;and access it in such an "semi-global" way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping this explains enough. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:49:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100460#M17759</guid>
      <dc:creator>berhei</dc:creator>
      <dc:date>2015-02-11T10:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100506#M17766</link>
      <description>&lt;P&gt;You can also use a CONSTANT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Setup-&amp;gt;Constants .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is not a user input, fixed for every command in the workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever you change that constant value, the input on every command will refer to the new value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you always use the constant names in the command, but you change the value only once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 18:37:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100506#M17766</guid>
      <dc:creator>trentino123</dc:creator>
      <dc:date>2015-02-11T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: variables usable for each command</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100549#M17778</link>
      <description>&lt;P&gt;No, sorry I still didn't get it. Give some clear example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function denifinition gives you a global contant, they can be used in filters, command parameters anywhere and in any workflow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:48:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/variables-usable-for-each-command/m-p/100549#M17778</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-02-12T15:48:42Z</dc:date>
    </item>
  </channel>
</rss>

