Activity Stream component setup

task brazil Updated Sep 10, 2026 8 min read activity-stream-component-uib-setup.md
Raw file servicenow.com

Activity Stream provides a history of each record, which includes things such as field changes, communication with requesters or fellow agents via comments, and work notes or email depending on the workflow.

Before you begin

This component contains a preset configuration. Presets automatically configure properties and event handlers for a component, making the component ready to work when you add it to a page. You can apply one preset to a single instance of a component on a page. For more information, see Automatically configure components using presets.

A preset connects to a controller, which acts as a data resource for the component. Controllers provide the configuration data and event binding the component needs to function in your experience. For more information see Bind data to UI pages using controllers.

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Activity Stream that differentiates it from other components in the content tree.

    A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "activity-stream-content-tree.png"] Alt text: Shows the label for the Activity Stream component in the UI Builder content tree

  2. Select the Activity Stream component, using one of these methods:

    • Click anywhere within the component.
    • Select the Activity Stream label you created for your component in the content tree. The preset selection panel appears in the pane on the right.

    [Omitted image "activity-stream-presets.png"] Alt text: Shows the list of presets for the Activity Stream component

  3. Select either None to configure the component properties manually, or select one of the available presets to use pre-configured properties and events for the component.

    When you select the first preset on a page, a configuration panel appears with instructions for configuring the required controller for that preset. For more information, see Automatically configure components using presets

    [Omitted image "activity-stream-preset-config.png"] Alt text: Shows the preset configuration screen for connecting the preset to the controller for Activity Stream

  4. Supply the data that connects a preset to its controller and select Use.

    UI Builder automatically configures any other presets in the page to use the same controller with the same configuration. For more information, see Add a controller.

Parent Topic:UIB Setup Information

Activity Stream component properties

Properties in the Activity Stream component have preset configuration values. You can accept these values or override them manually.

Presets are intended to suit a specific use case. However, you can override a property that has a preset value with a custom configuration if necessary for your design. For details on overriding and resetting presets, see Override a component preset.

Important: Preset values that you override aren't updated automatically when you upgrade the instance.

Available presets

  • Record activity stream

    This preset shows record activity. This activity can be record field changes, journal entries, attachments, and attached knowledge articles. This preset requires the Record controller.

    Properties included in this preset are:

    • table
    • Sys ID
    • Workspace view
    • New record
    • Events
    • Supplemental
    • AMB Channels
    • User references
    • Filter options
    • Timestamp
    • Suppress preview record for email actions
    • Bare

Properties

Field [property]

Description

Title[title]

Title of the activity stream. Default: Activity

Table[table]

Table name for the record.Default: incident

App Id[appId]

Identifier used to separate some of the stored data to prevent conflicts across multiple workspaces using the same records, please bind to @context.app.appId

Sys ID[sysId]

Unique identifier for the record.

Workspace view[view]

Fields that show.

New record[isNewRecord]

Displays that a record is newly created.

Show conversation filter[showConversationFilter]

Displays the conversation filter. Note: Doesn't imply a true/false value.

Show avatars[showTileAvatars]

Displays avatars.Note: Doesn't imply a true/false value.

Show tile icons[howTileIcons]

Displays tile icons.Note: Doesn't imply a true/false value.

Show tags[showTags]

Indicates that tags should be enabled.Default: true

Tag panel is visible[tagEditorIsVisible]

Enables custom tag editor to hide / show (Not part of the component only used for UIB UI only).Default: true

Data source[tagsDataSource]

How the data for tags is provided.

Tag List[availableTags]

List of visible tags for activity stream.

Events[events]

Optional array of events. When an event is provided, it saves the first request to the server. Property can be bound to a form data resource.

Supplemental[supplemental]

Supplemental data for activity events.

Fields[fields]

Reads field-level information, such as dictionary attributes, definitions, and field states. Tiles use this information to read configurations.

AMB Channels[ambChannels]

Optional array of AMB channels to connect to. Property can be binded to a form data resource to save initial queries.

User references[userReferences]

Optional array of user information to reuse across events. Property can be binded to a form data resource to save initial queries.

Feature flags[featureFlags]

Array of feature flags in the format {name: 'name', value: 'value'}

Filter options[filterOptions]

Optional array of filter options in the shape of {isSelected: true, label: 'Filter label', name: 'name'}. Property can be binded to a form data resource to save initial queries.

Timestamp[timestamp]

Current timestamp that's used to know when new data is coming in.

Suppress preview record for email actions[suppressPreviewRecordForEmailActions]

Stops propagation of the REVIEW_RECORD and PREVIEW_RECORD_REQUESTED email events.Default: true

User session information[userSession]

Object containing the user session information.Default: @context.session.user

Bare[bare]

Removes the padding and background from the component.Default: true

Show Email Options[showEmailOptions]

Enables email features.Default: true

enableLineSeparator[Enable Line Separator]

Enables line separatorDefault: false

Suppress Global Events[supressGlobalEvents]

Suppress events that rely on parent elements handling, and only dispatch events with the component prefix that are manually binded.Default: false

Attachment tile component[attachmentTileComponent]

Overwrites component used to render attachment tiles.

Audit tile component[auditTileComponent]

Overwrites component used to render audit tiles.

Audit relation tile component[auditRelationTileComponent]

Overwrites component used to render audit relation tiles.

Email tile component[emailTileComponent]

Overwrites component used to render email tiles.

Journal tile component[journalTileComponent]

Overwrites component used to render journal tiles.

Refresh requested[refreshRequested]

Timestamp of activity refresh request.

### Manual configuration

To configure the properties manually, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Activity Stream component events

If you have chosen a preset containing events, data handlers for those events are pre-selected by the controller, and no manual configuration is required. If the component has events that aren't included in the preset, you must add data handlers manually to configure those events.

The Events tab shows the events used by the Activity Stream component. Events with presets are marked with the Preset badge. To show events that don't have preset configurations, select + Add event mapping.

[Omitted image "activity-stream-events.png"] Alt text: Shows the events included with Activity Stream. None of the events are included with the preset

Event handlers

Event handlers work with data resources to link the Activity Stream actions to the data you want to display to your users. Select the event in the list to add one or more event handlers. For information about event handlers, see Configure an event handler.

[Omitted image "activity-stream-add-event-handler.png"] Alt text: Shows events for Activity Stream that have been selected to allow adding event handlers

For instruction on how to add and delete event handlers with presets and how to disable an event, see Configure an event handler and Disable preset event mappings.

Preset events

  • Record activity stream

    This preset doesn't have any events.

Event descriptions

Event

Description

Email action requested

User has selected Reply, Reply-all, or Forward from the email tile.Payload:

  • table: Table for the email record sys_email_draft or sys_email.
  • sysId: Value of Sys ID. Use -1 for new email record.
  • targetTable: Table for the record to which the email relates.
  • targetRecord: Sys ID for the record to which the email relates.
  • replyId: Contains the original Sys ID for a reply action.
  • replyType: One of replyAll, reply, or forward.

Preview record requested

The action to open a record was initiated by the component.Payload:

  • table: Table name of the record requested
  • sysId: Sys ID of the record requested
  • params: Optional parameters

Journal entry post succeeded

User successfully posted a journal entry.

Search documentation
Search document titles and file paths on the brazil branch