Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Configure business rule for close condition

Configure the business rule for close condition to auto-import the chats.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > System Definition > Business Rules.

  2. Click New.

  3. On the form, fill in the fields.

    In the Advanced tab, update the Condition and the Script fields.

FieldDescription
NameName of the business rule
TableTable to which the close condition is to be assigned.
ActiveCheck this box
AdvancedCheck this box
Where to run
  • When: async
  • Update: Check this box
  • Filter Conditions: Apply the filter condition of the close condition business rule
Advanced- Condition: Copy and paste the value of the condition. Modify the values as required. ``` !current.avoid_closing_chat_records && new sn_tcm_collab_hook.MSTeamsImportChatUtils().hasMatchingCloseCondition(current) ``` - Script: Copy and paste the value for the script. Modify the values as required. ``` new sn_tcm_collab_hook.MSTeamsImportChatUtils().closeChatStorageRecords(current); ```
  1. Click Submit.

Parent Topic:Customize IT Service Management integration with ServiceNow