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
Navigate to All > System Definition > Business Rules.
Click New.
On the form, fill in the fields.
In the Advanced tab, update the Condition and the Script fields.
| 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 |
|
| 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); ``` |
- Click Submit.
Parent Topic:Customize IT Service Management integration with ServiceNow