Skip to main content

VerifyObjectFieldsList

This Script is part of the Developer Tools Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Verifies that a given object includes all the given fields.

Script Data#


NameDescription
Script Typepython3
Tagsbasescript
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
fields_to_searchFields to search if they exist in map.
objectMap in which to search fields.

Outputs#


PathDescriptionType
FieldsExistsIf true, all the given fields exist in the object.boolean

Script Example#

!VerifyObjectFieldsList fields_to_search=name,type object=${Indicators}

Context Example#

{
"CheckIfFieldsExists": {
"FieldsExists": true
}
}

Human Readable Output#

Results#

Fields name, type are in given context.