<?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 :  Getting an Output of a SQL Query in a Mail in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115647#M20561</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a Workflow to get a list of all "offline" volume in a filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a below SQL Query which will give me a list of volumes which are "offline" or have an gaurantee as "volume"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i m trying to get this complete output in a mail but unable to get it done. I have created a filter also but unable to proceed further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;volume.name,&lt;BR /&gt;volume.state,&lt;BR /&gt;volume.volume_guarantee&lt;BR /&gt;FROM&lt;BR /&gt;storage.volume,&lt;BR /&gt;storage.array&lt;BR /&gt;WHERE&lt;BR /&gt;(&lt;BR /&gt;storage.array.name = '${array}'&lt;BR /&gt;OR storage.array.ip = '${array}'&lt;BR /&gt;)&lt;BR /&gt;AND volume.array_id = array.id&lt;BR /&gt;AND (&lt;BR /&gt;volume.state not like "online"&lt;BR /&gt;OR volume.volume_guarantee = 'volume'&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 22:05:29 GMT</pubDate>
    <dc:creator>raj_shrivastava11</dc:creator>
    <dc:date>2025-06-04T22:05:29Z</dc:date>
    <item>
      <title>WFA :  Getting an Output of a SQL Query in a Mail</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115647#M20561</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a Workflow to get a list of all "offline" volume in a filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a below SQL Query which will give me a list of volumes which are "offline" or have an gaurantee as "volume"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i m trying to get this complete output in a mail but unable to get it done. I have created a filter also but unable to proceed further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;volume.name,&lt;BR /&gt;volume.state,&lt;BR /&gt;volume.volume_guarantee&lt;BR /&gt;FROM&lt;BR /&gt;storage.volume,&lt;BR /&gt;storage.array&lt;BR /&gt;WHERE&lt;BR /&gt;(&lt;BR /&gt;storage.array.name = '${array}'&lt;BR /&gt;OR storage.array.ip = '${array}'&lt;BR /&gt;)&lt;BR /&gt;AND volume.array_id = array.id&lt;BR /&gt;AND (&lt;BR /&gt;volume.state not like "online"&lt;BR /&gt;OR volume.volume_guarantee = 'volume'&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:05:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115647#M20561</guid>
      <dc:creator>raj_shrivastava11</dc:creator>
      <dc:date>2025-06-04T22:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: WFA :  Getting an Output of a SQL Query in a Mail</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115650#M20564</link>
      <description>&lt;P&gt;WFA isn't necessarily the platform for this type of work. I have actually built my own dashboard that performs the queries against the WFA database. &amp;nbsp;I have built it with apache and php.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, onto your question. You can do this from WFA. &amp;nbsp;You will just need to build a custom command to do that for you. &amp;nbsp;Instead of doing it within the User Inputs section, you can use a custom command to run the powershell command "invoke-mysqlquery". &amp;nbsp;Then you can&amp;nbsp;format that however you want, and use the 'send-mailmessage' command to send an email with the data.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:53:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115650#M20564</guid>
      <dc:creator>coreywanless</dc:creator>
      <dc:date>2016-02-11T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: WFA :  Getting an Output of a SQL Query in a Mail</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115918#M20617</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:23:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Getting-an-Output-of-a-SQL-Query-in-a-Mail/m-p/115918#M20617</guid>
      <dc:creator>raj_shrivastava11</dc:creator>
      <dc:date>2016-02-17T20:23:38Z</dc:date>
    </item>
  </channel>
</rss>

