CheckFieldValue
This script checks that a field exists (and contains data), and optionally checks the value of the field for a match against an input value. If a regex is not supplied, the script checks that the field is not empty. This script can be used with the "GenericPolling" playbook to poll for field population or that a field contains a specific value.
python · Common Scripts
Details
| ID | CheckFieldValue |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | evaluation polling |
README
This script checks that a field exists (and contains data), and optionally checks the value of the field for a match against an input value. This script can be used with the “GenericPolling” playbook to poll for field population or that a field contains a specific value.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | evaluation, polling |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| field | The field to check |
| regex | The regex pattern to check the field for. (optional). |
Outputs
| Path | Description | Type |
|---|---|---|
| PollingCheckField.name | Field Name | string |
| PollingCheckField.exists | Field Exists | Unknown |
args: - description: The field to check. name: field required: true - description: The regex pattern to check the field for (optional). name: regex - auto: PREDEFINED defaultValue: 'False' description: Whether character matching will be case-insensitive. Default is "False". name: ignore_case predefined: - 'True' - 'False' comment: This script checks that a field exists (and contains data), and optionally checks the value of the field for a match against an input value. If a regex is not supplied, the script checks that the field is not empty. This script can be used with the "GenericPolling" playbook to poll for field population or that a field contains a specific value. commonfields: id: CheckFieldValue version: -1 enabled: true name: CheckFieldValue outputs: - contextPath: CheckFieldValue.name description: Field Name. type: string - contextPath: CheckFieldValue.exists description: Whether the field Exists. type: Unknown script: '-' subtype: python3 tags: - evaluation - polling timeout: '0' type: python dockerimage: demisto/python3:3.12.13.10404775 runas: DBotWeakRole tests: - No tests (auto formatted) fromversion: 5.0.0