- Categories:
Notification functions (Integration Configuration)
EMAIL_INTEGRATION_CONFIG¶
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.
- See also:
Using SYSTEM$SEND_SNOWFLAKE_NOTIFICATION to send notifications , SYSTEM$SEND_SNOWFLAKE_NOTIFICATION , INTEGRATION
Syntax¶
Arguments¶
'email_integration_name'Name of the email notification integration to use.
'subject'Subject 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_lineARRAYs 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:
Examples¶
See Using SYSTEM$SEND_SNOWFLAKE_NOTIFICATION to send notifications.