BatchData
This Automation takes in a string of comma separated items and returns a dictionary of with the defined chunk size.
python · Community Common Scripts
Details
| ID | BatchData |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
README
This Automation takes in a string of comma separated items and returns a dictionary of with the defined chunk size.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags |
Inputs
| Argument Name | Description |
|---|---|
| batch_size | number of items that will be returned in each dictionary items (must be of type int) |
| data | comma separated list of items |
| context_path | This nest the path under BatchedData in context. If you are running this script multiple times/simultaneously in a playbook, your data will be over written. |
Outputs
There are no outputs for this script.
args: - description: number of items that will be returned in each dictionary items (must be of type int). name: batch_size required: true - description: comma separated list of items. name: data required: true - description: This nest the path under BatchedData in context. If you are running this script multiple times/simultaneously in a playbook, your data will be over written. name: context_path required: true comment: 'This Automation takes in a string of comma separated items and returns a dictionary of with the defined chunk size. ' commonfields: id: BatchData version: -1 contentitemexportablefields: contentitemfields: fromServerVersion: '' dockerimage: demisto/python3:3.12.13.11879924 enabled: true name: BatchData runas: DBotWeakRole script: '' scripttarget: 0 subtype: python3 tags: [] type: python fromversion: 6.0.0 tests: - No tests (auto formatted)