<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Varunesh    rai on Medium]]></title>
        <description><![CDATA[Stories by Varunesh    rai on Medium]]></description>
        <link>https://medium.com/@varuneshrai607?source=rss-99502d0c6590------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UOc-SpapZCnp8DZ6</url>
            <title>Stories by Varunesh    rai on Medium</title>
            <link>https://medium.com/@varuneshrai607?source=rss-99502d0c6590------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:36:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varuneshrai607/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating Snowflake with Microsoft Teams for Notifications]]></title>
            <link>https://medium.com/@varuneshrai607/integrating-snowflake-with-microsoft-teams-for-notifications-36117e6cb5a1?source=rss-99502d0c6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/36117e6cb5a1</guid>
            <category><![CDATA[alerts]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[microsoft-teams]]></category>
            <dc:creator><![CDATA[Varunesh    rai]]></dc:creator>
            <pubDate>Mon, 09 Sep 2024 06:22:15 GMT</pubDate>
            <atom:updated>2024-09-09T06:22:15.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*NRJzby_3nQJOHk6aX4mbCg.jpeg" /></figure><p>In today’s fast-paced world, keeping track of data operations and alerts is crucial. One of the most effective ways to stay informed is by integrating your data platform with a communication tool like Microsoft Teams. In this blog, we’ll walk you through integrating Snowflake and Microsoft Teams to send notifications directly to your Teams channels.</p><p><strong>Why Integrate Snowflake with Teams?</strong></p><p>Snowflake is a powerful data platform, and Microsoft Teams is widely used for team collaboration. By integrating Snowflake with Teams, you can:</p><ul><li>Receive real-time alerts on task failures or other important events.</li><li>Monitor Snowflake warehouse usage and get notified of any anomalies.</li><li>Simplify communication by sending SQL query results directly to Teams channels.</li></ul><h3>Setting Up the Integration</h3><h4>Step 1: Create a Channel in Microsoft Teams</h4><p>To begin, you’ll need a dedicated channel in Microsoft Teams where you can receive notifications from Snowflake.</p><ol><li><strong>Open Microsoft Teams</strong> and navigate to the Teams section.</li><li><strong>Create a Channel</strong>: If you don’t already have a team, create one first. Then, within the team, create a channel where notifications will be sent.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*71_0zBb6VNMs4C_11r1wfg.png" /></figure><h4>Step 2: Configure an Incoming Webhook in Teams</h4><p>Incoming Webhooks allow external applications like Snowflake to send content to your Teams channels.</p><ol><li>Navigate to the <strong>Manage Channel</strong> section of your newly created channel.</li><li>Click on <strong>Connectors</strong> -&gt; <strong>Edit</strong> -&gt; <strong>Add Incoming Webhook</strong>.</li><li>Name your webhook and copy the generated URL. You’ll need this URL later to configure Snowflake.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*XjhNS0tRW2a_e_lOHaNKtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*yvkNVqMsPSE04nwVJWGMwQ.png" /><figcaption>Copy the webhook URL</figcaption></figure><h4>Step 3: Create a Network Rule in Snowflake</h4><p>The next step is to configure Snowflake to allow outbound communication with the Teams webhook. This is done by creating a network rule that specifies the host and port for outgoing traffic.</p><pre>create network rule &quot;EGRESS__TEAMS_WEBHOOKS&quot;<br>type = HOST_PORT<br>mode = EGRESS<br>value_list = (&#39;*********.webhook.office.com&#39;) -- Populate with webhook host of the target Teams account, such as customer.webhook.office.com<br>comment = &#39;Allows traffic to be sent to webhooks in the target Teams environment&#39;<br>;</pre><p>This rule ensures that Snowflake can send data to the specific Teams webhook URL.</p><h4>Step 4: Create an External Access Integration in Snowflake</h4><p>Next, you’ll set up an external access integration to facilitate secure communication between Snowflake and Microsoft Teams.</p><pre>CREATE EXTERNAL ACCESS INTEGRATION &quot;EAI__TEAMS_WEBHOOKS&quot;<br>  ALLOWED_NETWORK_RULES = (&quot;EGRESS__TEAMS_WEBHOOKS&quot;)<br>  ENABLED = TRUE<br>  COMMENT = &#39;External access integration to support traffic sent to webhooks in the target Teams environment&#39;;</pre><h4>Step 5: Create a Function to Send Notifications to Teams</h4><p>Now that the basic setup is complete, you can create a function in Snowflake that sends notifications to Microsoft Teams using the webhook URL.</p><pre>CREATE OR REPLACE FUNCTION SEND_TEAMS_NOTIFICATION(<br>    WEBHOOK_URL STRING,<br>    MESSAGE STRING<br>)<br>RETURNS STRING<br>LANGUAGE PYTHON<br>RUNTIME_VERSION = 3.10<br>PACKAGES = (&#39;requests&#39;)<br>EXTERNAL_ACCESS_INTEGRATIONS = (&quot;EAI__TEAMS_WEBHOOKS&quot;)<br>HANDLER = &#39;send_message&#39;<br>AS<br>$$<br>import requests<br><br>def send_message(webhook_url, message):<br>    payload = {&quot;text&quot;: message}<br>    response = requests.post(webhook_url, json=payload)<br>    <br>    if response.status_code == 200:<br>        return &quot;Notification sent successfully&quot;<br>    else:<br>        return f&quot;Failed to send notification. Status code: {response.status_code}&quot;<br>$$;</pre><p>This function takes a webhook URL and a message as input parameters and sends the message to the specified Teams channel.</p><h4>Step 6: Create a Procedure to Send Data Notifications</h4><p>Finally, let’s create a procedure that retrieves warehouse usage data and sends it as a formatted message to your Teams channel.</p><pre>CREATE OR REPLACE PROCEDURE SEND_MAIL()<br>RETURNS STRING<br>LANGUAGE JAVASCRIPT<br>AS<br>$$<br>var webhook_url = &#39;******************&#39;;  // Replace with your webhook URL<br>var sql_query = `<br>    SELECT <br>        DATE(start_time) AS sdate,<br>        warehouse_name, <br>        SUM(credits_used) AS credits <br>    FROM <br>        snowflake.account_usage.warehouse_metering_history <br>    WHERE <br>        start_time &gt;= DATEADD(day, -10, CURRENT_TIMESTAMP())<br>    GROUP BY <br>        DATE(start_time), warehouse_name <br>    ORDER BY <br>        1 DESC, 2 ASC`;<br><br>var sqlstmt = snowflake.createStatement({ sqlText: sql_query });<br>var rs = sqlstmt.execute();<br><br>var msg = `&lt;html&gt;&lt;head&gt;&lt;style&gt;<br>  table {<br>    border-collapse: collapse;<br>    width: 100%;<br>  }<br>  th, td {<br>    border: 1px solid black;<br>    padding: 8px;<br>    text-align: center;<br>  }<br>  tr:hover {<br>    background-color: coral;<br>  }<br>&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;DATE&lt;/th&gt;&lt;th&gt;WAREHOUSE NAME&lt;/th&gt;&lt;th&gt;TOTAL CREDITS&lt;/th&gt;&lt;/tr&gt;`;<br><br>while (rs.next()) {<br>  var DATE = rs.getColumnValue(1);<br>  var WAREHOUSE_NAME = rs.getColumnValue(2);<br>  var CREDITS = rs.getColumnValue(3);<br>  var rowColor = CREDITS &gt; 1 ? &#39;#fc353f&#39; : &#39;#0fffa3&#39;;<br><br>  msg += &#39;&lt;tr&gt;&lt;td&gt;&#39; + DATE + &#39;&lt;/td&gt;&lt;td&gt;&#39; + WAREHOUSE_NAME + &#39;&lt;/td&gt;&lt;td style=&quot;background-color: &#39; + rowColor + &#39;&quot;&gt;&#39; + CREDITS + &#39;&lt;/td&gt;&lt;/tr&gt;&#39;;<br>}<br>msg += `&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;`;<br><br>var notificationResult = snowflake.execute({<br>    sqlText: `SELECT SEND_TEAMS_NOTIFICATION(?, ?)`,<br>    binds: [webhook_url, msg]<br>});<br><br>var result = &quot;No result returned&quot;;<br>if (notificationResult.next()) {<br>    result = notificationResult.getColumnValue(1);<br>}<br><br>return result;<br>$$;</pre><p>This procedure runs a query to gather Snowflake warehouse usage data over the past 10 days. It then formats the data into an HTML table and sends it as a notification to your Teams channel using the SEND_TEAMS_NOTIFICATION function.</p><h3>Conclusion</h3><p>Integrating Snowflake with Microsoft Teams allows you to receive timely notifications and stay updated on critical data operations. By following the steps outlined in this blog, you can set up this integration and start sending automated notifications to your Teams channels, making it easier for your team to stay informed and act quickly when needed.</p><p><em>Reference </em><a href="https://interworks.com/blog/2024/06/11/snowflake-external-access-send-alerts-to-teams/">https://interworks.com/blog/2024/06/11/snowflake-external-access-send-alerts-to-teams/</a></p><p><a href="https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration">https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36117e6cb5a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhance Your Data Notifications: Utilizing SYSTEM$SEND_EMAIL for Credit Consumption Reports]]></title>
            <link>https://medium.com/@varuneshrai607/enhance-your-data-notifications-utilizing-system-send-email-for-credit-consumption-reports-e6c281e48f2f?source=rss-99502d0c6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6c281e48f2f</guid>
            <dc:creator><![CDATA[Varunesh    rai]]></dc:creator>
            <pubDate>Mon, 01 Jan 2024 05:04:32 GMT</pubDate>
            <atom:updated>2024-01-01T05:04:32.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w9Rm3ukkfb9fvFR6" /></figure><p>Have you ever wondered how to elevate your Snowflake experience and make your email notifications more visually appealing? The SYSTEM$SEND_EMAIL feature in Snowflake is a powerful tool for sending email notifications, and one of its key features lies in the MIME type parameter.</p><p>When you invoke SYSTEM$SEND_EMAIL, you typically receive email notifications in plain text. However, if you want to take your emails to the next level and present information in a more structured and visually appealing manner, the secret lies in the “mime_type” parameter.</p><h4><strong>Exploring MIME Types</strong></h4><p>The “mime_type” parameter allows you to specify the format in which the email content should be presented. In particular, if you’re looking to receive emails in HTML format, complete with tables and a more dynamic layout, you can set the MIME type to “text/html.”</p><pre>//Syntax<br>CALL SYSTEM$SEND_EMAIL(<br>    &#39;&lt;integration_name&gt;&#39;,<br>    &#39;&lt;email_address_1&gt; [ , ... &lt;email_address_N&gt; ]&#39;,<br>    &#39;&lt;email_subject&gt;&#39;,<br>    &#39;&lt;email_content&gt;&#39;,<br>    [ &#39;&lt;mime_type&gt;&#39; ]<br>);</pre><p><strong>Elevate Your Notifications</strong></p><p>By incorporating MIME types into your SYSTEM$SEND_EMAIL calls, you can transform plain text emails into visually engaging messages. Whether you’re sharing data insights or any other information, the ability to present it in HTML format adds a layer of professionalism and clarity to your communications.</p><h4>Use Case: Monitoring Credit Consumption</h4><p>In addition to the powerful features of SYSTEM$SEND_EMAIL, let’s explore a real-world use case that adds practical value to your Snowflake experience. Imagine sending automated emails detailing the credits consumed by each warehouse over the last 10 days. This use case is particularly useful for monitoring resource utilization and staying on top of credit consumption trends.</p><p>To implement this use case, we’ve crafted a JavaScript procedure that fetches relevant data from Snowflake’s account_usage.warehouse_metering_history view and dynamically generates an HTML table with the credit consumption details. Let&#39;s delve into the key components of the code:</p><pre>CREATE OR REPLACE PROCEDURE DB_DEV_DEMO.SP.SEND_MAIL()<br>RETURNS VARCHAR<br>LANGUAGE JAVASCRIPT<br>AS<br>$$<br>var sql_query = &quot;select date(start_time) as sdate,warehouse_name, sum(credits_used) as credits from snowflake.account_usage.warehouse_metering_history where start_time&gt;= DATEADD(day, -10, CURRENT_TIMESTAMP())group by all order by 1 desc,2 asc&quot;;<br>var sqlstmt = snowflake.createStatement({ sqlText: sql_query });<br>var rs = sqlstmt.execute();<br>var msg = `&lt;html&gt;&lt;head&gt;&lt;style&gt;<br>  table {<br>    border-collapse: collapse;<br>    width: 100%;<br>  }<br>  th, td {<br>    border: 1px solid black;<br>    padding: 8px;<br>    text-align: center;<br>  }<br>&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;table border=&quot;1&quot; style=&quot;background-color: #D6EEEE&quot;&gt;&lt;tr&gt;&lt;th&gt;DATE&lt;/th&gt;&lt;th&gt;WAREHOUSE NAME&lt;/th&gt;&lt;th&gt;TOTAL CREDITS&lt;/th&gt;&lt;/tr&gt;`;<br> <br>while (rs.next()) {<br>  var DATE = rs.getColumnValue(1);<br>  var WAREHOUSE_NAME = rs.getColumnValue(2);<br>  var CREDITS = rs.getColumnValue(3);<br>  var rowColor = CREDITS &gt; 1 ? &#39;#fc353f&#39; : &#39;#0fffa3&#39;;<br> <br>msg += &#39;&lt;tr :hover {background-color: coral;}&gt;&lt;td&gt;&#39; + DATE + &#39;&lt;/td&gt;&lt;td&gt;&#39; + WAREHOUSE_NAME + &#39;&lt;/td&gt;&lt;td style=&quot;background-color: &#39; + rowColor + &#39;&quot;&gt;&#39; + CREDITS + &#39;&lt;/td&gt;&lt;/tr&gt;&#39;;<br>}<br>msg += `&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;`;<br> <br>var proc = &quot;CALL SYSTEM$SEND_EMAIL(&#39;my_email_int&#39;, &#39;varunesh.rai@abc.com&#39;, &#39;Daily Credit Consumption: Snowflake Account&#39;, &#39;&quot; + msg + &quot;&#39;,&#39;text/html&#39;)&quot;;<br> <br>var stmt = snowflake.createStatement({ sqlText: proc });<br>stmt.execute();<br> <br>return &quot;Succeeded! Email sent to Admin&quot;;<br>$$;<br><br>//Call the procedure<br>call DB_DEV_DEMO.SP.SEND_MAIL()</pre><p>Execute the above procedure and it will send an email to to the specified recipients</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*oG3zMU1c8DVDzAZJPbssrw.png" /><figcaption>OUTPUT</figcaption></figure><p>How It Works<br><strong>1. SQL Query</strong>: The procedure starts by executing a SQL query to retrieve the relevant data on warehouse credit consumption over the last 10 days.</p><p><strong>2. HTML Table Generation</strong>: The fetched data is then dynamically formatted into an HTML table, making it visually appealing and easy to understand.</p><p><strong>3. Color-Coding</strong>: To add a layer of insight, the script color-codes the credit consumption cells. Values greater than 1 are displayed in red, indicating potential concerns, while values less than or equal to 1 are shown in green, signifying a satisfactory level of credit usage.</p><p><strong>4. SYSTEM$SEND_EMAIL</strong>: The final step involves calling SYSTEM$SEND_EMAIL with the generated HTML content. The email is sent to the specified recipients, providing them with a clear and visually appealing summary of warehouse credit consumption.</p><p>By incorporating this use case into your Snowflake environment, you can proactively monitor credit consumption trends and receive timely insights to optimise resource utilisation effectively. SYSTEM$SEND_EMAIL, coupled with MIME types and dynamic HTML content, enables you to create informative and visually engaging email notifications tailored to your specific business needs.</p><p>Thank you <a href="https://medium.com/u/95043e1214b6">arjun kandoth</a> for your support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6c281e48f2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Task Failure Notifications in Snowflake: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@varuneshrai607/automating-task-failure-notifications-in-snowflake-a-step-by-step-guide-79d6f90c6652?source=rss-99502d0c6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/79d6f90c6652</guid>
            <category><![CDATA[alerts]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[email-notifications]]></category>
            <dc:creator><![CDATA[Varunesh    rai]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 12:48:04 GMT</pubDate>
            <atom:updated>2023-11-29T02:07:26.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*4qHXsAbV1o-yTdApS21JEg.png" /></figure><p>In the dynamic world of data management, the ability to monitor and respond to task executions is crucial for maintaining a healthy and efficient data ecosystem. Snowflake, a leading cloud-based data platform, offers a robust set of tools to manage tasks seamlessly. What if you could take it a step further and receive email notification for failure task ? In this blog post, we will explore how to implement a proactive approach by setting up email alerts in Snowflake, providing real-time notifications when a task encounters an issue.</p><h4>Steps to Configure Email Alerts in Snowflake</h4><ol><li><strong>Verify Recipient Email on Snowflake</strong></li></ol><p>Before diving into the technical setup, ensure that the recipient’s email address is verified on Snowflake</p><p><strong>2. Create Notification Integration</strong></p><p>To start our journey into Snowflake notifications, let’s create a notification integration specifically tailored for email alerts. Establish an integration object to define the email service details, ensuring a secure and reliable connection..</p><pre>-- Create a notification integration for email alerts<br>CREATE OR REPLACE NOTIFICATION INTEGRATION email_alert_int<br>TYPE=EMAIL<br>ENABLED=TRUE<br>ALLOWED_RECIPIENTS=(&#39;recipient_email1@example.com&#39;, &#39;recipient_email2@example.com&#39;)<br>COMMENT=&#39;Integration for sending email alerts&#39;;</pre><p>Here, ALLOWED_RECIPIENTS includes the email addresses of individuals who will receive these notifications. Make sure to customize this list to match your specific recipients.</p><p><strong>3. Use SYSTEM$SEND_EMAIL() to Send Alerts</strong></p><p>Leverage the built-in SYSTEM$SEND_EMAIL() stored procedure to dispatch email notification. This procedure takes parameters such as the integration object name, recipient email address, email subject, message content, and content type.</p><ul><li>With our notification integration in place, we can now proceed to create a procedure that handles failed tasks and triggers email notification.</li></ul><pre>--Create a procedure for sending email alerts for failed tasks<br>CREATE OR REPLACE PROCEDURE DB_DEV_DEMO.ALERTS.SEND_FAILURE_ALERT()<br>RETURNS VARCHAR<br>LANGUAGE JAVASCRIPT<br>AS<br>$$<br>var sql_query = &quot;SELECT NAME, STATE AS status_message,CONVERT_TIMEZONE(&#39;Asia/Kolkata&#39;, SCHEDULED_TIME) as SCHEDULED_TIME,CONVERT_TIMEZONE(&#39;Asia/Kolkata&#39;, COMPLETED_TIME) as COMPLETED_TIME FROM SNOWFLAKE.ACCOUNT_USAGE.TASK_HISTORY WHERE STATE = &#39;FAILED&#39; AND SCHEDULED_TIME &gt;= DATEADD(HOUR, -1, CURRENT_TIMESTAMP())&quot;;<br>var sqlstmt = snowflake.createStatement({ sqlText: sql_query });<br>var rs = sqlstmt.execute();<br>var msg = `&lt;html&gt;&lt;body&gt;&lt;table border=&quot;1&quot;&gt;&lt;tr&gt;&lt;th&gt;Task Name&lt;/th&gt;&lt;th&gt;Status&lt;/th&gt;&lt;th&gt;Scheduled Time&lt;/th&gt;&lt;th&gt;Completed Time&lt;/th&gt;&lt;/tr&gt;`;<br> <br>while (rs.next()) {<br>  var name = rs.getColumnValue(1);<br>  var status_message = rs.getColumnValue(2);<br>  var starttime = rs.getColumnValue(3);<br>  var endtime = rs.getColumnValue(4);<br>  status_message = status_message.replace(/&#39;/g, &#39;&#39;);<br> <br>  msg += &#39;&lt;tr&gt;&lt;td&gt;&#39; + name + &#39;&lt;/td&gt;&lt;td&gt;&#39; + status_message + &#39;&lt;/td&gt;&lt;td&gt;&#39; + starttime + &#39;&lt;/td&gt;&lt;td&gt;&#39; + endtime + &#39;&lt;/td&gt;&lt;/tr&gt;&#39;;<br>}<br> <br>msg += `&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;`;<br> <br> <br>var proc = &quot;CALL SYSTEM$SEND_EMAIL(&#39;alert_email_integration&#39;, &#39;test@gmail.com.com&#39;, &#39;Task Failure Alert: Snowflake Account&#39;, &#39;&quot; + msg + &quot;&#39;,&#39;text/html&#39;)&quot;;<br> <br>var stmt = snowflake.createStatement({ sqlText: proc });<br>stmt.execute();<br> <br>return &quot;Succeeded! Email sent&quot;;<br>$$;<br><br>           /*Customize the code as per your specific use case */</pre><ul><li><strong>Create Alert for Task Failures</strong></li></ul><p>Let’s tie everything together by creating an alert that monitors task failures and triggers our email alert procedure.</p><pre>--Create an alert for task failures<br>CREATE OR REPLACE ALERT DB_DEV_DEMO.ALERTS.TASK_FAILURE_ALERT<br>WAREHOUSE = WH_DEV_DEVELOPER_XS<br>SCHEDULE = &#39;60 minute&#39;<br>IF (EXISTS<br>(<br>       SELECT 1<br>       FROM SNOWFLAKE.ACCOUNT_USAGE.TASK_HISTORY<br>       WHERE STATE = &#39;FAILED&#39; AND<br>             SCHEDULED_TIME &gt;= DATEADD(MINUTE, -60, GETDATE())<br>))<br>THEN CALL DB_DEV_DEMO.ALERTS.SEND_FAILURE_ALERT();</pre><p>And here it looks like in the mailbox</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*LzM16eAKN9FobAJ4XgnXGg.png" /></figure><p><em>Congratulations! You’ve now established a robust system for monitoring task failures and sending email notification in Snowflake.</em></p><p><strong>Conclusion</strong></p><p>In this guide, we explored the significance of Snowflake notifications and walked through the process of integrating email alerts into your task monitoring strategy. By combining notification integrations, procedures, and alerts, you’ve empowered yourself to stay informed and responsive to critical events in your data workflows.</p><p><em>Stay tuned for more insights and tips on optimizing your Snowflake experience!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79d6f90c6652" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>