EMAIL_INTEGRATION_CONFIG

functionsupportedIntegrations, network & secrets

docs.snowflake.com ↗

Notification functions

Returns a JSON object that specifies the email notification integration, recipients, and subject line to use for an email notification. This is a helper function that you use to construct an integration configuration object for the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure.

Syntax

SNOWFLAKE.NOTIFICATION.EMAIL_INTEGRATION_CONFIG(
  '<email_integration_name>',
  '<subject>',
  <array_of_email_addresses_for_to_line> )
SNOWFLAKE.NOTIFICATION.EMAIL_INTEGRATION_CONFIG(
  '<email_integration_name>',
  '<subject>',
  <array_of_email_addresses_for_to_line>,
  <array_of_email_addresses_for_cc_line>,
  <array_of_email_addresses_for_bcc_line> )

Parameters

NameRequiredDescription
'email_integration_name'requiredName of the email notification integration to use.
'subject'requiredSubject of the email message. The subject cannot exceed 256 characters in length.
array_of_email_addresses_for_to_line array_of_email_addresses_for_cc_line array_of_email_addresses_for_bcc_linerequiredARRAYs of the email addresses to include in the “To:”, “Cc:”, and “Bcc:” lines of the message. You must specify email addresses of users in the current account. These users must verify their email addresses. If the ALLOWED_RECIPIENTS property is set to a list of email addresses in the email notification integration, the email addresses must be in that list. Call the ARRAY_CONSTRUCT function to construct each ARRAY. Note You cannot send an email notification if you only specify the “Bcc:” line.

Returns

A JSON-formatted string that specifies a notification integration for the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure to send. For example, suppose that you pass in the notification integration name 'my_email_int' with the following subject line and list of email addresses for the “To:” line: The function returns the following JSON-formatted string: The following example sends the same notification with an additional list of email addresses for the “Cc:” line. Note that this example passes NULL for the “Bcc:” addresses to exclude the bccAddress property from the returned object. The function returns the following JSON-formatted string: The following example sends the same notification with an additional list of email addresses for the “Bcc:” line: The function returns the following JSON-formatted string:

See also

Referenced by