<?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: Where can I put SELECT statement into WFA? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129590#M23366</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your original query was fine except for the little miss. See the error message carefully. Its same like below.&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filter 'my aggr filter' returned attributes does not contain all natural keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filter's returned attributes '[&lt;FONT color="#FF0000"&gt;&lt;EM&gt;available_size_mb, name&lt;/EM&gt;&lt;/FONT&gt;]' , dictionary entry natural keys '&lt;FONT color="#FF0000"&gt;[node.cluster.primary_address, name, node.name&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;As you can see your SELECT query is only selecting &amp;nbsp;&lt;EM&gt;available_size_mb, name&amp;nbsp;&lt;/EM&gt;but the natural keys for the filter of the given type aggregate on cm_storage needs&amp;nbsp;&lt;SPAN&gt;node.cluster.primary_address, name, node.name as well in the SELECT columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So now your select statement should have the columns as required as per the natural key.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The right query is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT
aggregate.name AS &lt;FONT color="#FF0000"&gt;'name'&lt;/FONT&gt;,
aggregate.available_size_mb,
node.name  AS &lt;FONT color="#FF0000"&gt;'node.name'&lt;/FONT&gt;,
cluster.primary_address AS &lt;FONT color="#FF0000"&gt;'node.cluster.primary_address'&lt;/FONT&gt;

FROM
cm_storage.cluster,
cm_storage.node,
cm_storage.aggregate
WHERE
cluster.name = '${ClusterName}'
AND node.cluster_id = cluster.id
AND aggregate.node_id = node.id
AND aggregate.name NOT LIKE '%aggr0%'
AND aggregate.name NOT LIKE '%sata%'&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now my SELECT columns have all the required natural keys for this filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your filter is READY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For help in creating filters, you can see some of the provided canned filters of a given type.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&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>Thu, 30 Mar 2017 06:08:46 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2017-03-30T06:08:46Z</dc:date>
    <item>
      <title>Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129507#M23346</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a simple example, if I want to use a SELECT to populate all aggretaes, where and how can I put this statement into WFA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see all SELECT's in Filters. In Design, when I build a WFA, I can put variable, or constant. I guess, my questions how can I add Filters in the process here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me out, step by step in details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:16:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129507#M23346</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2025-06-04T15:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129517#M23349</link>
      <description>&lt;P&gt;Heights -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click on Filters, then click on the green + to create a new filter...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this response has been helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At your service,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eugene E. Kashpureff, Sr.&lt;BR /&gt;Independent NetApp Consultant &lt;A href="http://www.linkedin.com/in/eugenekashpureff" target="_blank"&gt;http://www.linkedin.com/in/eugenekashpureff&lt;/A&gt;&lt;BR /&gt;Senior NetApp Instructor, FastLane US &lt;A href="http://www.fastlaneus.com/" target="_blank"&gt;http://www.fastlaneus.com/&lt;/A&gt;&lt;BR /&gt;(P.S. I appreciate 'kudos' on any helpful posts.)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:01:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129517#M23349</guid>
      <dc:creator>ekashpureff</dc:creator>
      <dc:date>2017-03-28T19:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129518#M23350</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heights -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll be teaching 'Creating Custom Workflows with WFA' on-line next week on the 6th and 7th.&lt;/P&gt;&lt;P&gt;Would love to see you in class !&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="http://www.fastlaneus.com/netapp-training" target="_blank"&gt;http://www.fastlaneus.com/netapp-training&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this response has been helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At your service,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eugene E. Kashpureff, Sr.&lt;BR /&gt;Independent NetApp Consultant &lt;A href="http://www.linkedin.com/in/eugenekashpureff" target="_blank"&gt;http://www.linkedin.com/in/eugenekashpureff&lt;/A&gt;&lt;BR /&gt;Senior NetApp Instructor, FastLane US &lt;A href="http://www.fastlaneus.com/" target="_blank"&gt;http://www.fastlaneus.com/&lt;/A&gt;&lt;BR /&gt;(P.S. I appreciate 'kudos' on any helpful posts.)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:17:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129518#M23350</guid>
      <dc:creator>ekashpureff</dc:creator>
      <dc:date>2017-03-28T19:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129519#M23351</link>
      <description>&lt;P&gt;Thanks for the message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I wanted to create a SELECT statement to select aggregates with SAS (not SATA) type only AND within a cluster XYZ, what should SELECT statement be?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:34:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129519#M23351</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-03-28T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129520#M23352</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heights -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You select the filter when filling out the input for a given command in a workflow.&lt;/P&gt;&lt;P&gt;For instance on the 'Create Volume' command you mouse over the aggregate field and then click the elipses ( ... ) to go to the resource selection screen where you can then select a filter or finder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again - would love to have you join us in the WFA class on WebEx next week !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also a couple of WFA web based classes you might want to check out on&amp;nbsp;Learning Center:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learningcenter.netapp.com/" target="_blank"&gt;https://learningcenter.netapp.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this response has been helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At your service,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eugene E. Kashpureff, Sr.&lt;BR /&gt;Independent NetApp Consultant &lt;A href="http://www.linkedin.com/in/eugenekashpureff" target="_blank"&gt;http://www.linkedin.com/in/eugenekashpureff&lt;/A&gt;&lt;BR /&gt;Senior NetApp Instructor, FastLane US &lt;A href="http://www.fastlaneus.com/" target="_blank"&gt;http://www.fastlaneus.com/&lt;/A&gt;&lt;BR /&gt;(P.S. I appreciate 'kudos' on any helpful posts.)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:33:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129520#M23352</guid>
      <dc:creator>ekashpureff</dc:creator>
      <dc:date>2017-03-28T19:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129521#M23353</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the following SELECT statement, type as "aggregate". What did it go wrong? when I test it, it allows me to enter the cluster name, then got the error message shown as attached. Please correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;aggregate.name,&lt;BR /&gt;aggregate.available_size_mb&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.cluster,&lt;BR /&gt;cm_storage.node,&lt;BR /&gt;cm_storage.aggregate&lt;BR /&gt;WHERE&lt;BR /&gt;cluster.name = '${ClusterName}'&lt;BR /&gt;AND node.cluster_id = cluster.id&lt;BR /&gt;AND aggregate.node_id = node.id&lt;BR /&gt;AND aggregate.name NOT LIKE '%aggr0%'&lt;BR /&gt;AND aggregate.name NOT LIKE '%sata%'&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 21:36:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129521#M23353</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-03-28T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129538#M23355</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;U&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For writing filter query, we need to add natural keys of tables which are used.&lt;BR /&gt;Please Use below modified SQL query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;aggregate.name,&lt;BR /&gt;node.name AS 'node.name',&lt;BR /&gt;cluster.primary_address AS 'node.cluster.primary_address' ,&lt;BR /&gt;aggregate.available_size_mb&lt;BR /&gt;FROM&lt;BR /&gt;cm_storage.aggregate&lt;BR /&gt;JOIN&lt;BR /&gt;cm_storage.node AS node&lt;BR /&gt;ON aggregate.node_id=node.id&lt;BR /&gt;JOIN&lt;BR /&gt;cm_storage.cluster AS cluster&lt;BR /&gt;ON node.cluster_id =cluster.id&lt;BR /&gt;WHERE&lt;BR /&gt;cluster.name = 'hrscluster-4'&lt;BR /&gt;AND aggregate.name NOT LIKE '%aggr0%'&lt;BR /&gt;AND aggregate.name NOT LIKE '%sata%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this sloves your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 07:07:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129538#M23355</guid>
      <dc:creator>sivakumar_sekar</dc:creator>
      <dc:date>2017-03-29T07:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129571#M23364</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/57469"&gt;@sivakumar_sekar&lt;/a&gt;, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied your code,&amp;nbsp;only change I made is the name of the cluster. However,&amp;nbsp;got the similar errors as attached below, after I click on "test"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on why?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 20:01:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129571#M23364</guid>
      <dc:creator>netappmagic</dc:creator>
      <dc:date>2017-03-29T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129590#M23366</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your original query was fine except for the little miss. See the error message carefully. Its same like below.&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filter 'my aggr filter' returned attributes does not contain all natural keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filter's returned attributes '[&lt;FONT color="#FF0000"&gt;&lt;EM&gt;available_size_mb, name&lt;/EM&gt;&lt;/FONT&gt;]' , dictionary entry natural keys '&lt;FONT color="#FF0000"&gt;[node.cluster.primary_address, name, node.name&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;As you can see your SELECT query is only selecting &amp;nbsp;&lt;EM&gt;available_size_mb, name&amp;nbsp;&lt;/EM&gt;but the natural keys for the filter of the given type aggregate on cm_storage needs&amp;nbsp;&lt;SPAN&gt;node.cluster.primary_address, name, node.name as well in the SELECT columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So now your select statement should have the columns as required as per the natural key.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The right query is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT
aggregate.name AS &lt;FONT color="#FF0000"&gt;'name'&lt;/FONT&gt;,
aggregate.available_size_mb,
node.name  AS &lt;FONT color="#FF0000"&gt;'node.name'&lt;/FONT&gt;,
cluster.primary_address AS &lt;FONT color="#FF0000"&gt;'node.cluster.primary_address'&lt;/FONT&gt;

FROM
cm_storage.cluster,
cm_storage.node,
cm_storage.aggregate
WHERE
cluster.name = '${ClusterName}'
AND node.cluster_id = cluster.id
AND aggregate.node_id = node.id
AND aggregate.name NOT LIKE '%aggr0%'
AND aggregate.name NOT LIKE '%sata%'&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now my SELECT columns have all the required natural keys for this filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your filter is READY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For help in creating filters, you can see some of the provided canned filters of a given type.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&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>Thu, 30 Mar 2017 06:08:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129590#M23366</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-30T06:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129594#M23368</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA has constantly been trying to reduce the effort in creating workflows and simplifying things for its users thereby reducing the learning curve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use WFA4.0 + , WFA has provided &lt;EM&gt;Criteria builder&lt;/EM&gt;&amp;nbsp; for resource selection feature for your help. So now you don't even need to create filters. &amp;nbsp;Its very easy and works from simple to moderate level usecases. ( For complex use cases you would need Filters ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you tell me which command are you trying in your workflow where you are selecting this aggregates, I can use this example and tell you how to proceed without creating filters using the criteria builder.&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>Thu, 30 Mar 2017 07:12:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129594#M23368</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-30T07:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129626#M23374</link>
      <description />
      <pubDate>Thu, 30 Mar 2017 18:26:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129626#M23374</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-03-30T18:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129627#M23375</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;A href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9704" target="_blank"&gt;@sinhaa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the modified SELECT works! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A follow-up question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;As you can see your SELECT query is only selecting &amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;available_size_mb, name&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;but the natural &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;keys for the filter of the given type aggregate on cm_storage needs&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;node.cluster.primary_address, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;name, node.name as well in the SELECT columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I know if a filter needs the natural keys, and what are they?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess, what I still dont' understand is that why I have to include each one of following columns in the query, and as such format/syntax?&amp;nbsp;Cann't I replace "node.name" with "aggregate.node"?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;aggregate.name AS &lt;FONT color="#FF0000"&gt;'name'&lt;/FONT&gt;,
aggregate.available_size_mb,
node.name  AS &lt;FONT color="#FF0000"&gt;'node.name'&lt;/FONT&gt;,
cluster.primary_address AS &lt;FONT color="#FF0000"&gt;'node.cluster.primary_address'&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 18:52:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129627#M23375</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-03-30T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129682#M23394</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I know if a filter needs the natural keys, and what are they?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Every filter &amp;nbsp;always needs you to select all the natural keys for the given filter type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In your example type aggregate cm_storage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you go to Designer -&amp;gt; dictionary and locate the dictionary aggregate scheme cm_storage, you can see what are its natural keys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Its &lt;EM&gt;name&lt;/EM&gt; , reference&amp;nbsp;-&amp;gt; &lt;EM&gt;cm_storage.Node . Now look to resolve the reference&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For dictionary cm_storage.Node, the natural keys are Node.name and ref-&amp;gt; cm_storage.Cluster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Similarly resolving the ref for cm_storage.Cluster which has natural key node.cluster.primary_address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The above manual way to look for the natual keys is too cumbersome to try. WFA till now hasn't provided a good way to know the which are the natural keys to be included in the filter and in what format. Currently you can only know by the way of failure as you did in your case. Have any select statement and do test, failure message will tell you wnat all you need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In future we have plans to make it better.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I still dont' understand is that why I have to include each one of following columns in the query, and as such format/syntax?&amp;nbsp;Cann't I replace "node.name" with "aggregate.node"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think the above should help you understand why you can't replace node.name with aggregate.node. Columns in WFA dictionary ( DB tables ) can have foreign keys which are referencing&amp;nbsp;to objects in other dictionary ( tables).&lt;/SPAN&gt;&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 14:57:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129682#M23394</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-31T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129735#M23407</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still could not fully understand the manual way you described. In any event, the error message&amp;nbsp;indicated to me&amp;nbsp;to include &amp;nbsp;"node.cluster.primary_address" and "node.name" as part of natural keys. ayou suggested,by using this way, &amp;nbsp;I can find what needs to be included from there wiithout fully understanding the manual way. What about "name" here? In the error message, it only told me to use "name". It didn't say what refernce I have to use. So,&amp;nbsp;again, why cannot I use "aggregate.name", "cluster.name", or even "node.name", since it didn't say what kind of name I should use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I know that&amp;nbsp;I have to use AS 'name', AS 'node.name', and&amp;nbsp; AS 'node.cluster.primary_address'? Can I just drop off all these 3 AS's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Foreign keys are able to have two tables joined together, if&amp;nbsp; I understand correctly. Are foreign keys equvalent to natural keys, conceptually ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know&amp;nbsp; you have tried a lot to help&amp;nbsp; me out. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:42:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129735#M23407</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-04-03T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129736#M23408</link>
      <description>&lt;P&gt;natural key = attributes which are used to uniquely identify an object. This concept is used in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see it in the dictionary entries for a particular object type, like Volume, SVM etc.&lt;/P&gt;&lt;P&gt;The attributes which are used to uniquely identify an object is ticked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:58:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129736#M23408</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2017-04-03T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129757#M23409</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What about "name" here? In the error message, it only told me to use "name". It didn't say what refernce I have to use. So,&amp;nbsp;again, why cannot I use "aggregate.name", "cluster.name", or even "node.name", since it didn't say what kind of name I should use?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The required natural keys have to be the column headings in your SQL query. 'name' is the natural key for the aggrgate itself, so there is no referance and hence its resolution not required. The other natural key is&lt;STRONG&gt; ref-&amp;gt;cm_storage.node&lt;/STRONG&gt; and hence that needs to be resolved. The dictionary (table) node has natural keys &lt;STRONG&gt;'name'&lt;/STRONG&gt; and &lt;STRONG&gt;ref-&amp;gt;cm_storage.Cluster&lt;/STRONG&gt;. The dictionary cm_storage.Cluster has natural key primary_address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the overall natural keys for the aggregate are 'name', 'node.name', 'node.cluster.primary_address'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And so your SELECT statement need to hav columns with the above 3 headings. If you use aggrgate.name then the column heading in result will be aggrgate.name and WFA is expecting name. So this fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope you its clear now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 03:44:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129757#M23409</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-04-04T03:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129824#M23425</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can kind of understand the process, but still it seems there are no definite rules I can follow. It may come to the point, I need to have more practices, and then find out the regularity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 15:45:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129824#M23425</guid>
      <dc:creator>heightsnj</dc:creator>
      <dc:date>2017-04-05T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I put SELECT statement into WFA?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129834#M23426</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/34910"&gt;@heightsnj&lt;/a&gt;,&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Along with Sinha solution another way to filter the resource using resource selection and below is the details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create new workflow and add "search and define" command need to be added in workflow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7044i83A07CF7ECB1DADB/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Step1 Create_New_workflow.png" title="Step1 Create_New_workflow.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step2&lt;/P&gt;&lt;P&gt;Using "content tab" define the dictionary entry.&lt;BR /&gt;Here please select your dictionary entry to filter the resource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7045iACA7F9AC17C66DC5/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Step2 Defining_Dictionary_Entry.png" title="Step2 Defining_Dictionary_Entry.png" /&gt;&lt;/P&gt;&lt;P&gt;Step 3&lt;/P&gt;&lt;P&gt;Please select "enter search Criteria" to add the resource selection details&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7046iE16A790A776AE277/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Step3 Select Search Criteria.png" title="Step3 Select Search Criteria.png" /&gt;&lt;/P&gt;&lt;P&gt;Step 4&lt;/P&gt;&lt;P&gt;select "the filter aggregate that match the following rules" check box to add the rules for resource selection&lt;BR /&gt;here you can make aggregate name rule and type of the aggregate and etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7047i33DFCB39882038AA/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Step4 ResourceSelectionDetails.png" title="Step4 ResourceSelectionDetails.png" /&gt;&lt;/P&gt;&lt;P&gt;Step5&lt;/P&gt;&lt;P&gt;By using test button, we can achive the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7048i807EAB709A91062A/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Step5 ResourceSelectionTableDetails.png" title="Step5 ResourceSelectionTableDetails.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resource selection criteria contains&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;equals&amp;nbsp;&lt;/P&gt;&lt;P&gt;not-equals&lt;/P&gt;&lt;P&gt;Contains&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of now "Not-contains" can not be used for resource selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more details, please search the topic as "how resource selection works" in below link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;A href="https://library.netapp.com/ecm/ecm_download_file/ECMLP2436046" target="_blank"&gt;https://library.netapp.com/ecm/ecm_download_file/ECMLP2436046&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resource selection can be used from WFA 4.0 version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 16:14:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Where-can-I-put-SELECT-statement-into-WFA/m-p/129834#M23426</guid>
      <dc:creator>sivakumar_sekar</dc:creator>
      <dc:date>2017-04-05T16:14:17Z</dc:date>
    </item>
  </channel>
</rss>

