---
sourceDocument: Australia Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/employee-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Configure business rule for close condition

# Configure business rule for close condition {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

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

## Antes de Iniciar

Role required: admin

## Procedimento

1. Navigate to AllSystem DefinitionBusiness Rules.  
2. Click New.
3. On the form, fill in the fields.  

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

   {#business-rule-close-condition__table_j3d_hxy_vqb__entry__2}

   | 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 {#business-rule-close-condition__ul_tdd_cvz_pnb} |
   | 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); {#business-rule-close-condition__ul_wcv_1vz_pnb} |
   [Tabela 1. Business rule for close condition]

   {#business-rule-close-condition__table_j3d_hxy_vqb}
4. Click Submit.

