Configure business rule for close condition

task australia Updated Sep 10, 2026 1 min read business-rule-close-condition.md
Raw file servicenow.com

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.

    [Omitted image "business-rules.png"] Alt text: Business rules

  2. Click New.

  3. On the form, fill in the fields.

    [Omitted image "itsm-business-rule-close-condition.png"] Alt text: Close condition

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

    [Omitted image "condition-script-itsm-business-rules.png"] Alt text: Condition and script values

Field

Description

Name

Name of the business rule

Table

Table to which the close condition is to be assigned.

Active

Check this box

Advanced

Check 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.

    Text
    
    

!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.

    Text
    
    

new sn_tcm_collab_hook.MSTeamsImportChatUtils().closeChatStorageRecords(current); ```

4. Click **Submit**.

Parent Topic:Customize IT Service Management integration with ServiceNow

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