Set up table notifications for task tables

You can set up a table notification for a task table to enable automatic live feed messages.

Before you begin

Role required: live_feed_admin or chat_admin

Procedure

  1. Navigate to Collaborate > Feed Administration > Table Notifications.
  2. Click New or select a notification to open it.
  3. Complete the form.
    Table 1. Live Table Notification fields
    Field Description
    Table

    Select the table for which notifications are generated.

    Note: The list shows only tables and database views that are in the same scope as the table notification.
    Post to chat rooms Select 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.
    Post to live feed Select 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.

    Record Feeds Select the fields to post for record feeds.

    This field is available only if Post to live feed is selected.

    Application Select the application that contains this record.
    Active Select the check box to enable the notification.
    Insert Select the check box to generate the notification when a record is inserted into the database.
    Update Select the check box to generate the notification when a record is updated.
    Feed Select 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.

    Conditions Create 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 scriptfield only if the condition is met. You may choose to leave this field blank and include conditions in the script.

    Description Enter a description of the table notification.
    Message Construct 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.

    High priority incident opened: ${URI}
     Short description: ${short_description}
    Note: For security reasons, any HTML code is automatically stripped out of a message before it is posted.
    Before script Create 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.
    • changedFields: an ArrayList of fields changed on submit. Use changedFields.contains('fieldname') to check for change.
    • answer: set answer to false to cancel the notification.
    • profileSource: set to a valid GlideRecord object to define the profile that is posting the message.
    • 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.

    Any custom variable created in the script is also exposed to the message in the form of ${myVariableName}.

  4. Click Submit or Update.