{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":47982,"path":"servicenow-platform/live-feed/t_SetUpATableNotifForATaskTable.md","title":"Set up table notifications for task tables","bundle":null,"doc_type":null,"release":"australia","body":"\n# Set up table notifications for task tables\n\nYou can set up a table notification for a task table to enable automatic Live Feed messages.\n\n## Before you begin\n\nRole required: live\\_feed\\_admin or chat\\_admin\n\n## Procedure\n\n1.  Navigate to **Live Feed** &gt; **Feed Administration** &gt; **Table Notifications**.\n\n2.  Click **New** or select a notification to open it.\n\n3.  Complete the form.\n\n<table id=\"table_xjv_sl1_fr\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nTable\n\n</td><td>\n\nSelect the table for which notifications are generated.\n\n **Note:** The list shows only tables and database views that are in the same scope as the table notification.\n\n</td></tr><tr><td>\n\nPost to chat rooms\n\n</td><td>\n\nSelect the check box to generate the notification in chat rooms that are associated with the record, This applies to task records only and requires that the Chat plugin is active.\n\n</td></tr><tr><td>\n\nPost to Live Feed\n\n</td><td>\n\nSelect the check box to generate the notification on Live Feed. If record feeds are not set up and the **Feed group** field is blank, the notification is posted to the company feed.\n\n</td></tr><tr><td>\n\nRecord Feeds\n\n</td><td>\n\nSelect the fields to post for record feeds.This field is available only if **Post to live feed** is selected.\n\n</td></tr><tr><td>\n\nApplication\n\n</td><td>\n\nSelect the application that contains this record.\n\n</td></tr><tr><td>\n\nActive\n\n</td><td>\n\nSelect the check box to enable the notification.\n\n</td></tr><tr><td>\n\nInsert\n\n</td><td>\n\nSelect the check box to generate the notification when a record is inserted into the database.\n\n</td></tr><tr><td>\n\nUpdate\n\n</td><td>\n\nSelect the check box to generate the notification when a record is updated.\n\n</td></tr><tr><td>\n\nFeed\n\n</td><td>\n\nSelect the Live Feed team to which you want to post messages. This field is available only if **Post to Live Feed** is selected. Clear the field to post notifications on the company feed.\n\n</td></tr><tr><td>\n\nConditions\n\n</td><td>\n\nCreate the condition that must be met to generate the notification. If you add a condition statement, the system evaluates the condition first and parses the **Before script** field only if the condition is met. You may choose to leave this field blank and include conditions in the script.\n\n</td></tr><tr><td>\n\nDescription\n\n</td><td>\n\nEnter a description of the table notification.\n\n</td></tr><tr><td>\n\nMessage\n\n</td><td>\n\nConstruct the automatic message you want to generate. You can include field values as variables and a link to the record. To add a variable, position the cursor in the text and then click the field name in the **Select variables** field. To add a link to the record, enter `${URI}` in the message text as shown in the following example.\n\n ```\nHigh priority incident opened: ${URI}\n Short description: ${short_description}\n```\n\n **Note:** For security reasons, any HTML code is automatically stripped out of a message before it is posted.\n\n</td></tr><tr><td>\n\nBefore script\n\n</td><td>\n\nCreate a script that runs before a notification is generated. The script runs only if the condition evaluates to true or is empty. The following variables are available in the script.-   *current*: the GlideRecord object that triggered the notification.\n-   *changedFields*: an ArrayList of fields changed on submit. Use changedFields.contains\\('fieldname'\\) to check for change.\n-   *answer*: set answer to false to cancel the notification.\n-   *profileSource*: set to a valid GlideRecord object to define the profile that is posting the message.\n-   *profileID*: set to a live\\_profile sys\\_id to define the profile that is posting the message; by default it is the current record. Overrides profileSource if both are specified.\n Any custom variable created in the script is also exposed to the message in the form of *$\\{myVariableName\\}*.\n\n</td></tr></tbody>\n</table>4.  Click **Submit** or **Update**.\n\n\n**Parent Topic:**[Live Feed table notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/live-feed/c_SetUpLiveFeedTableNotifications.md)\n\n**Related topics**  \n\n\n[Set up table notifications for non-task tables]()\n\n[Live Feed table notification examples]()\n\n"}}