VerifyObjectFieldsList

Verifies that a given object includes all the given fields.

python · Developer Tools

Details

IDVerifyObjectFieldsList
Languagepython
From Version6.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagsbasescript

README

Verifies that a given object includes all the given fields.

Script Data


Name Description
Script Type python3
Tags basescript
Cortex XSOAR Version 6.0.0

Inputs


Argument Name Description
fields_to_search Fields to search if they exist in map.
object Map in which to search fields.

Outputs


Path Description Type
FieldsExists If 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.

args:
- name: fields_to_search
  required: true
  description: Fields to search if they exist in map.
  isArray: true
- name: object
  required: true
  description: Map in which to search fields.
  isArray: true
comment: Verifies that a given object includes all the given fields.
commonfields:
  id: VerifyObjectFieldsList
  version: -1
name: VerifyObjectFieldsList
outputs:
- contextPath: FieldsExists
  description: If true, all the given fields exist in the object.
  type: boolean
script: '-'
tags:
- basescript
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.13.10116658
fromversion: 6.0.0
tests:
- No test