<?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 Selecting a Template based on a User Input in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49409#M10197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to select a Volume Template based off a user input;&amp;nbsp; In this scenario I wanted to define several templates with differing options (maybe Gold, Silver, Bronze) and then have the template apply based of a user input as the workflow is executed ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:35:56 GMT</pubDate>
    <dc:creator>fenton</dc:creator>
    <dc:date>2025-06-05T06:35:56Z</dc:date>
    <item>
      <title>Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49409#M10197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to select a Volume Template based off a user input;&amp;nbsp; In this scenario I wanted to define several templates with differing options (maybe Gold, Silver, Bronze) and then have the template apply based of a user input as the workflow is executed ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:35:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49409#M10197</guid>
      <dc:creator>fenton</dc:creator>
      <dc:date>2025-06-05T06:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49414#M10199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that the easiest way to do this in one workflow would be to create three Define charts for the Create Volume command.&amp;nbsp; Each Define Chart would have the correct template already prepopulated.&amp;nbsp; The Define Variable could be something like volume_Gold, volume_Silver, volume_Bronze.&amp;nbsp; In the workflow definition of the create variable, use a function to select the correct define chart.&amp;nbsp; For example - ($volumePolicy == 'GOLD') ?volume_Gold :($volumePolicy == 'SILVER') ?volume_Silver :volume_Bronze.&amp;nbsp; In the User Input definition section, set the input variable type to ENUM and add the 'GOLD,SILVER,BRONZE' values.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternate option would be to clone the workflow and define them as different workflows with different policies.&amp;nbsp; This would be a better option if you also need to apply templates for other things like Vfiler or there are multiple Volumes (the previous option would require three define charts for every volume being created).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:04:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49414#M10199</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2012-02-01T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49422#M10202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed this will work ,another alternative will be have the user input as part of the template &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/14549_pastedImage_0.png" style="width: 588px; height: 416px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also write functions like getDedupByPolicy(String PolicyName)&amp;nbsp; and populate the temaple .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both will work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:34:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49422#M10202</guid>
      <dc:creator>dekel</dc:creator>
      <dc:date>2012-02-01T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49430#M10204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - cheers guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:39:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49430#M10204</guid>
      <dc:creator>fenton</dc:creator>
      <dc:date>2012-02-01T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49435#M10206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dekel - that works a treat &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 12:13:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49435#M10206</guid>
      <dc:creator>fenton</dc:creator>
      <dc:date>2012-02-06T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49440#M10207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply to this one:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been talking to Rich about how we could implement your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have 3 separate define charts then will that require 3 seperate volume create commands/volume find charts.&amp;nbsp; If that is the case would we need to decalre a different volume variable for each volume create command, as the find chart is associated with the variable, and if so how would we determine which volume variable to use later on in the workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 11:17:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49440#M10207</guid>
      <dc:creator>markrob</dc:creator>
      <dc:date>2012-06-22T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49444#M10208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just seeing your questions.&amp;nbsp; Here's a way I think you can cover your concerns while using Jeremy's method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I would think that each of the 3 Volume Defines would live in their own FindChart.&amp;nbsp; Also, it would be easier to pull out the Aggregate finder into its own FindChart as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to use the volume object reference later in the workflow, I think you could use a return in a separate FindChart that would define a "global" workflow variable for the correct volume object, then just reference that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what it would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16166_workflow+view+calling+the+global+variable+for+the+volume+object+reference.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Above is the workflow view calling a "global" variable that is kind of like a reference to a volume object reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16176_findcharts.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a FindChart for some global variables, a FindChart for Finding the Aggregate (and therefore the array) to use for the new volumes, a FindChart for each of the Volume reference defines, and others as needed for further work in the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16177_volume+as+global+variable.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "global" workflow variable "share_vol" is defined as a reference to one of the other three volume object reference variables, depending on the $volumePolicy user input variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16178_sample+gold+template+volume+define.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Above is an example of defining one of the volume references based on one of the templates.&amp;nbsp; There are three of these FindCharts, one for each volume template to offer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16179_using+the+global+variable+later+in+workflow.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is an example of using the reference to the volume object reference variable later in the workflow so that you don't have to perform any more complex logic later on.&amp;nbsp; Pretty simple, huh?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 19:53:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49444#M10208</guid>
      <dc:creator>bdave</dc:creator>
      <dc:date>2012-06-29T19:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Template based on a User Input</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49449#M10209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dave, I tihink i'll have to play with this to understand how it is working&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:29:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Selecting-a-Template-based-on-a-User-Input/m-p/49449#M10209</guid>
      <dc:creator>markrob</dc:creator>
      <dc:date>2012-07-02T08:29:20Z</dc:date>
    </item>
  </channel>
</rss>

