{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":2448,"path":"application-development/servicenow-sdk/fluent-email-notification-api.md","title":"Email Notification API - ServiceNow Fluent","bundle":null,"doc_type":null,"release":"australia","body":"\n# Email Notification API - ServiceNow Fluent\n\nThe Email Notification API defines notifications \\[sysevent\\_email\\_action\\] that send automated emails based on database operations, custom events, or manual triggers.\n\n**Note:** For the latest ServiceNow Fluent API documentation and examples, see the [ServiceNow Fluent API reference](https://servicenow.github.io/sdk/category/api-reference) and [ServiceNow SDK examples repository](https://github.com/ServiceNow/sdk-examples) on GitHub.\n\nFor general information about email notifications, see [Email and SMS notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_EmailNotifications.md).\n\n**Parent Topic:**[ServiceNow Fluent API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/servicenow-fluent-api-reference.md)\n\n**Related topics**  \n\n\n[ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-fluent.md)\n\n## EmailNotification object\n\nCreate an email notification \\[sysevent\\_email\\_action\\] specifying when to send it, who receives it, what it contains, and if it can be delivered in an email digest.\n\nFor general information about creating email notifications, see [Create an email notification](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_CreateANotification.md).\n\n<table id=\"table_yys_jdh_33c\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\ntable\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nRequired. The variable identifier or name of a table to which the notification applies. To define a table, use the [Table API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/table-api-now-ts.md).**Note:** Don’t select the Task \\[task\\] table, which is for extending other tables. Notifications that run on the Task table directly aren’t supported.\n\n</td></tr><tr><td>\n\ntriggerConditions\n\n</td><td>\n\nObject\n\n</td><td>\n\nRequired. The conditions that trigger the notification. For more information, see [triggerConditions object](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/fluent-email-notification-api.md).\n\n</td></tr><tr><td>\n\nname\n\n</td><td>\n\nString\n\n</td><td>\n\nA unique name for the email notification.\n\n</td></tr><tr><td>\n\ndescription\n\n</td><td>\n\nString\n\n</td><td>\n\nA description of the purpose of the email notification.\n\n</td></tr><tr><td>\n\ncategory\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nThe variable identifier or name of a notification category for grouping notifications. To define a notification category, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).Default: The default email category \\(c97d83137f4432005f58108c3ffa917a\\)\n\n</td></tr><tr><td>\n\nnotificationType\n\n</td><td>\n\nString\n\n</td><td>\n\nThe type of notification.Valid values:\n\n-   email: A standard email.\n-   vcalendar: A meeting invitation. Meeting invitations aren't supported with email digests.\n\nDefault: email\n\n</td></tr><tr><td>\n\nactive\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the notification is active.Default: true\n\n</td></tr><tr><td>\n\nmandatory\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the notification is required.Default: false\n\n</td></tr><tr><td>\n\nenableDynamicTranslation\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to enable dynamic translation for the notification.Default: false\n\n</td></tr><tr><td>\n\nemailContent\n\n</td><td>\n\nObject\n\n</td><td>\n\nThe email content and formatting. For more information, see [emailContent object](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/fluent-email-notification-api.md).\n\n</td></tr><tr><td>\n\nrecipientDetails\n\n</td><td>\n\nObject\n\n</td><td>\n\nThe email recipients. For more information, see [recipientDetails object](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/fluent-email-notification-api.md).\n\n</td></tr><tr><td>\n\ndigest\n\n</td><td>\n\nObject\n\n</td><td>\n\nThe email digest content and formatting. For more information, see [digest object](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/fluent-email-notification-api.md).\n\n</td></tr><tr><td>\n\n$meta\n\n</td><td>\n\nObject\n\n</td><td>\n\nMetadata for the application metadata.With the installMethod property, you can map the application metadata to an output directory that loads only in specific circumstances.\n\n```javascript\n$meta: {\n      installMethod: 'String'\n}\n```\n\nValid values for installMethod:\n\n-   demo: Outputs the application metadata to the `metadata/unload.demo` directory to be installed with the application when the **Load demo data** option is selected.\n-   first install: Outputs the application metadata to the `metadata/unload` directory to be installed only the first time an application is installed on an instance.\n\n</td></tr></tbody>\n</table>```javascript\nimport { EmailNotification } from '@servicenow/sdk/core'\n\nEmailNotification({\n    table: 'incident',\n    name: 'Custom Event Notification',\n    description: 'Triggered by custom event',\n    category: 'c97d83137f4432005f58108c3ffa917a',  // Default email category sys_id\n    triggerConditions: {\n        generationType: 'event',\n        eventName: 'custom.incident.escalated',\n        order: 100\n    },\n    recipientDetails: {\n        recipientUsers: ['6816f79cc0a8016401c5a33be04be441'],  // Admin user sys_id\n        eventParm1WithRecipient: true,  // Event param 1 contains recipient\n        isSubscribableByAllUsers: true\n    },\n    emailContent: {\n        contentType: 'text/html',\n        subject: 'Incident Escalated',\n        messageHtml: '<p>An incident has been escalated.</p>'\n    }\n})\n```\n\n## triggerConditions object\n\nConfigure the conditions that must be met for the notification to be sent.\n\n**Note:** If the same trigger generates multiple notifications, the system sends only one notification. The system considers all other notifications, even if they have a different subject and body, as duplicates. The Ignore Duplicates business rule controls this functionality.\n\n<table id=\"table_fhs_wfh_33c\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\ngenerationType\n\n</td><td>\n\nString\n\n</td><td>\n\nRequired. The method of triggering the email notification.Valid values:\n\n-   engine: Sends the notification when a record is inserted or updated.\n-   event: Sends the notification when custom events occur.\n-   triggered: Manually triggered notifications. The following properties don't apply if this property is set to `triggered`.\n\n</td></tr><tr><td>\n\nonRecordInsert\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to send the notification when a record is inserted. **Note:** Either this property or the onRecordUpdate property must be true.\n\nDefault: false\n\n</td></tr><tr><td>\n\nonRecordUpdate\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to send the notification when a record is updated.**Note:** Either this property or the onRecordInsert property must be true.\n\nDefault: false\n\n</td></tr><tr><td>\n\neventName\n\n</td><td>\n\nString\n\n</td><td>\n\nThe name of a custom event to trigger sending the notification.This property is required if the value of the generationType property is `event`.\n\n</td></tr><tr><td>\n\naffectedFieldOnEvent\n\n</td><td>\n\nString\n\n</td><td>\n\nThe event parameter that contains the affected field.This property applies only if the generationType property is set to `event`.\n\nValid values:\n\n-   parm1\n-   parm2\n\n</td></tr><tr><td>\n\nweight\n\n</td><td>\n\nNumber\n\n</td><td>\n\nThe notification priority relative to duplicate notifications.Notifications that have the same target table and recipients are considered duplicates if the weights are different. If weights are same, an additional evaluation is done to check if the subject and the body \\(excluding watermark\\) are the same to qualify as duplicate notification. When there are duplicate notifications, the system only sends the notification with the highest weight. All other notifications are moved from the Outbox to the Skipped mailbox. The default value of 0 causes the system to send the notification \\(assuming the conditions are met\\).\n\nMaximum value: 1000\n\nDefault: 0\n\n</td></tr><tr><td>\n\ncondition\n\n</td><td>\n\nString\n\n</td><td>\n\nA filter query that specifies the fields and values that must be true for users to access the object. For more information, see [Operators available for filters and queries](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/r_OpAvailableFiltersQueries.md).\n\n</td></tr><tr><td>\n\nadvancedCondition\n\n</td><td>\n\nString\n\n</td><td>\n\nA JavaScript conditional statement that must return true or set a global answer variable to true to send the notification. For more information, see [Advanced conditions for email notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_OptSpecifyingAdvancedCond.md).**Note:** This property is evaluated in addition to other conditions that you set on the notification. Both the condition and advanced condition must evaluate to true to send the notification.\n\n</td></tr><tr><td>\n\nitemTable\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nThe variable identifier or name of the table to which the notification item refers. To define a table, use the [Table API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/table-api-now-ts.md).\n\n</td></tr><tr><td>\n\nitem\n\n</td><td>\n\nString\n\n</td><td>\n\nThe item to use for the notification context.\n\n</td></tr><tr><td>\n\norder\n\n</td><td>\n\nNumber\n\n</td><td>\n\nThe execution order of the notification.Maximum value: 9999\n\nDefault: 100\n\n</td></tr></tbody>\n</table>```javascript\ntriggerConditions: {\n    generationType: \"engine\",\n    onRecordInsert: false,\n    onRecordUpdate: true,\n    weight: 100,\n    condition: \"priority=1^ORpriority=2^state!=6^state!=7\", // High/Critical priority, not resolved/closed\n    order: 100\n}\n```\n\n## emailContent object\n\nConfigure the contents of an email notification.\n\n<table id=\"table_fhs_wfh_33c\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\ncontentType\n\n</td><td>\n\nString\n\n</td><td>\n\nThe type of email content. Valid values:\n\n-   text/html\n-   text/plain\n-   multipart/mixed\n\nDefault: text/html\n\n</td></tr><tr><td>\n\ntemplate\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nThe variable identifier or sys\\_id of an email template \\[sysevent\\_email\\_template\\]. To define an email template, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).You can only specify an email template that meets one of the following conditions:\n\n-   The template has the same scope and table as the notification.\n-   The template has the same scope but has no specified table.\n-   The template has the same table and is in the global scope.\n\n</td></tr><tr><td>\n\nstyle\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nThe variable identifier or sys\\_id of an email style \\[sys\\_email\\_style\\]. To define an email style, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).\n\n</td></tr><tr><td>\n\nsubject\n\n</td><td>\n\nString\n\n</td><td>\n\nA subject line for the email. If empty, the system uses the Subject value from the email template.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\n</td></tr><tr><td>\n\nsmsAlternate\n\n</td><td>\n\nString\n\n</td><td>\n\nA notification message to send specifically to SMS devices. The SMS alternate message is limited to 140 characters. If empty, the system uses the SMS alternate value from the email template.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\n</td></tr><tr><td>\n\nimportance\n\n</td><td>\n\nString\n\n</td><td>\n\nThe level of importance of the message. Valid values:\n\n-   low\n-   high\n\n</td></tr><tr><td>\n\nincludeAttachments\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to include attachments from the notification trigger record with the email.Default: false\n\n</td></tr><tr><td>\n\nomitWatermark\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to omit the watermark attached to each email. For more information, see [Watermarks on notification emails](https://www.servicenow.com/docs/r/7LhbZn3yz3Q58qhjZoU9iQ/kTwHRtaHawJF_Sz_AA_tnA).Default: false\n\n</td></tr><tr><td>\n\nfrom\n\n</td><td>\n\nString\n\n</td><td>\n\nThe email address from which to send the notification.\n\n</td></tr><tr><td>\n\nreplyTo\n\n</td><td>\n\nString\n\n</td><td>\n\nThe email address to which recipients can reply.\n\n</td></tr><tr><td>\n\npushMessageOnly\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to send the notification only as a push notification to a mobile device.Default: false\n\n</td></tr><tr><td>\n\npushMessageList\n\n</td><td>\n\nArray\n\n</td><td>\n\nA list of variable identifiers or sys\\_ids of push messages \\[sys\\_push\\_notif\\_msg\\] to associate with the notification. To define a push notification, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).**Note:** The push message and notification must be for the same table.\n\n</td></tr><tr><td>\n\nforceDelivery\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to bypass user notification preferences that would prevent a notification and send the notification anyway.Default: false\n\n</td></tr><tr><td>\n\nmessageHtml\n\n</td><td>\n\nString\n\n</td><td>\n\nThe HTML content of the notification message. If empty, the system uses the message HTML from the email template.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\nThis property is required if the value of the contentType property is `text/html` or `multipart/mixed`.\n\n</td></tr><tr><td>\n\nmessageText\n\n</td><td>\n\nString\n\n</td><td>\n\nThe plain text content of the notification message. If empty, the system uses the message text from the email template.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\nThis property is required if the value of the contentType property is `text/plain` or `multipart/mixed`.\n\n</td></tr><tr><td>\n\nmessage\n\n</td><td>\n\nString\n\n</td><td>\n\nDeprecated. Message contents.\n\n</td></tr></tbody>\n</table>```javascript\nemailContent: {\n    contentType: \"text/html\",\n    subject: \"CRITICAL: Incident \\${number} - \\${short_description}\",\n    messageHtml: `\n            <div style=\"background-color: #ff4444; color: white; padding: 10px; border-radius: 5px;\">\n                <h2>CRITICAL INCIDENT ALERT</h2>\n                <p><strong>Incident:</strong> \\${number}</p>\n                <p><strong>Priority:</strong> \\${priority}</p>\n                <p><strong>Description:</strong> \\${short_description}</p>\n                <p><strong>Assigned To:</strong> \\${assigned_to.name}</p>\n                <p><strong>Created:</strong> \\${sys_created_on}</p>\n                <p><a href=\"\\${instance_url}/incident.do?sys_id=\\${sys_id}\" style=\"color: #ffffff; text-decoration: underline;\">View Incident</a></p>\n            </div>\n        `,\n    smsAlternate:\n      \"CRITICAL: Incident \\${number} - \\${short_description}. Priority: \\${priority}. Assigned: \\${assigned_to.name}\",\n    pushMessageList: [\"mobile_push_notification_sys_id\"], \n    forceDelivery: true, \n    importance: \"high\"\n}\n```\n\n## digest object\n\nConfigure the contents of an email digest that summarizes the activity for a selected notification and its target records during a specified time interval.\n\nFor general information about email digests, see [Email digests](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/email-digests.md).\n\n<table id=\"table_fhs_wfh_33c\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nallow\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether users to receive this notification as a digest. If false, all other properties of the digest object are ignored.Default: false\n\n</td></tr><tr><td>\n\ndefault\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether digest mode is enabled by default for this notification.Default: false\n\n</td></tr><tr><td>\n\ntype\n\n</td><td>\n\nString\n\n</td><td>\n\nThe type of digest. Valid values:\n\n-   single: Sends the notification in an email digest when it’s triggered multiple times during the selected interval for a single target record, for example INC001 only.\n-   multiple: Sends the notification in an email digest when it’s triggered multiple times during the selected interval for a multiple target record, for example INC001, INC002, and more.\n\n</td></tr><tr><td>\n\ndefaultInterval\n\n</td><td>\n\nReference or String\n\n</td><td>\n\nThe variable identifier or sys\\_id of a digest interval \\[sys\\_email\\_digest\\_interval\\] to use as the default time interval for digest delivery. To define a digest interval, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).\n\n</td></tr><tr><td>\n\nsubject\n\n</td><td>\n\nString\n\n</td><td>\n\nA subject line for the email digest. If empty, the system uses the Subject value from the email template.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\n</td></tr><tr><td>\n\nhtml\n\n</td><td>\n\nString\n\n</td><td>\n\nThe HTML content of the email digest. You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\n</td></tr><tr><td>\n\ntext\n\n</td><td>\n\nString\n\n</td><td>\n\nThe plain text content of the email digest. You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\n</td></tr><tr><td>\n\ntemplate\n\n</td><td>\n\nString\n\n</td><td>\n\nThe variable identifier or sys\\_id of an email template \\[sysevent\\_email\\_template\\]. To define an email template, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).\n\n</td></tr><tr><td>\n\nseparatorHtml\n\n</td><td>\n\nString\n\n</td><td>\n\nAn HTML separator that appears between each item summarized in the digest.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\nDefault: `<p>&nbsp;</p>\\n<hr>\\n<p>&nbsp;</p>`\n\n</td></tr><tr><td>\n\nseparatorText\n\n</td><td>\n\nString\n\n</td><td>\n\nA plain text separator that appears between each item summarized in the digest.You can use the `\\${variable}` format for variable references. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table, such as the short description or comments and work notes.\n\nDefault: `--------------------------------------------------------------------------------\\n`\n\n</td></tr><tr><td>\n\nfrom\n\n</td><td>\n\nString\n\n</td><td>\n\nThe email address from which to send the notification.\n\n</td></tr><tr><td>\n\nreplyTo\n\n</td><td>\n\nString\n\n</td><td>\n\nThe email address to which recipients can reply.\n\n</td></tr></tbody>\n</table>```javascript\ndigest: {\n    allow: true,\n    defaultInterval: hourlyDigest,\n    template: escalationTemplate,\n    subject: \"Incident Escalation Digest - \\${digest_count} incidents require attention\",\n    html: `<div>\n           <div>Incident Escalation Digest</div>\n           </div>`,\n    separatorHtml: '<hr style=\"margin: 15px 0;\">',\n    from: \"noreply@company.com\",\n    replyTo: \"itsupport@company.com\"\n}\n```\n\n## recipientDetails object\n\nConfigure who receives an email notification.\n\nNotification recipients must be active users defined as active users in the User \\[sys\\_user\\] table. They must also have a valid email address defined for their primary channel \\(device\\) in the Notification Device \\[cmn\\_notif\\_device\\] table. Your notification recipients must also have the appropriate notification preferences enabled.\n\n<table id=\"table_fhs_wfh_33c\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nrecipientUsers\n\n</td><td>\n\nArray\n\n</td><td>\n\nA list of variable identifiers or sys\\_ids of users \\[sys\\_user\\] or a list of email addresses to receive the notification. To define a user, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).\n\n</td></tr><tr><td>\n\nrecipientFields\n\n</td><td>\n\nArray\n\n</td><td>\n\nA list of fields that reference the users or user groups to receive the notification. The fields must be reference fields.For example, if a notification uses the Incident \\[incident\\] table, you can specify the `opened_by` field to send the notification to users or groups who opened the incident. This list of users or groups is variable and depends on the values of the associated task record. You can also select a field that includes an email address string to send a notification to that address.\n\n</td></tr><tr><td>\n\nrecipientGroups\n\n</td><td>\n\nArray\n\n</td><td>\n\nA list of variable identifiers or sys\\_ids of user groups \\[sys\\_user\\_group\\] to receive the notification. To define a user group, use the [Record API - ServiceNow Fluent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-sdk/record-api-now-ts.md).**Note:** Group members receive individual notifications only if **Include members** is selected in the group record.\n\n</td></tr><tr><td>\n\nexcludeDelegates\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to exclude delegated users. Set this property to true to help prevent the instance from sending email notifications to delegates of the users and members of the groups you selected.Default: false\n\n</td></tr><tr><td>\n\nisSubscribableByAllUsers\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to allow all users to subscribe to the notification. For more information, see [Subscription-based notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_SubscriptionBasedNotifications.md).**Note:** If the record contains sensitive or protected data, consider restricting the recipient list only to those users and groups who normally have access to it, leaving the value of this property as false. You can also configure your notification content so that private or sensitive data isn’t exposed. For example, you could insert a link back to the associated record, so that details aren’t revealed in the notification.\n\nDefault: false\n\n</td></tr><tr><td>\n\nsendToCreator\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether to send the notification to the person who performed the action that started the notification process, if the person is also a recipient. If the event creator isn’t specified in one of the recipient fields, the event creator doesn’t receive a notification regardless of the setting in this field.Default: false\n\n</td></tr><tr><td>\n\neventParm1WithRecipient\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the event parameter 1 contains one or more notification recipients.This property only applies to event-based notifications.\n\n</td></tr><tr><td>\n\neventParm2WithRecipient\n\n</td><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the event parameter 2 contains one or more notification recipients.This property only applies to event-based notifications.\n\n</td></tr></tbody>\n</table>```javascript\nrecipientDetails: {\n    recipientGroups: [\"d625dccec0a8016700a222a0f7900d06\"], // IT Support group sys_id\n    recipientFields: [\"assigned_to\", \"caller_id\"],\n    sendToCreator: false,\n    isSubscribableByAllUsers: false\n}\n```\n\n"}}