Case field-triggered scripts
Configure Cortex XSIAM field-change-triggered scripts to automate case updates, enrichment, and notifications.
Configure Cortex XSIAM case fields to run scripts when field values change. Use case field-triggered scripts to update other case fields, notify responders, or start follow-up actions when a case changes. For example, a script can run when a case's severity or status changes.
Create case automation scripts in Python, PowerShell, or JavaScript on the Scripts page. To use a script as a case field trigger, add the field-change-triggered-case tag. Then select the script from the Attributes tab when you create or edit a case field. Scripts without this tag can't be selected.
When a case field that has a script changes:
Cortex XSIAM saves the field change first, and then runs the script. The update doesn't wait for the script to finish. If the script fails, the field change is still saved.
If a single update changes several fields that have scripts, the script assigned to each changed field runs.
During a bulk update, a field-triggered script runs in every case where its assigned field changes.
A script can update the case by using the
setCasecommand.Changes that a script makes with
setCasedon't trigger other field-triggered scripts. If a script triggered by field A usessetCaseto change field B, Cortex XSIAM doesn't run the script assigned to field B.
Last updated
Was this helpful?
