ConvertKeysToTableFieldFormat
Convert object keys to match table keys. Use when mapping object/collection to table (grid) field. (Array of objects/collections is also supported). Example: Input: { "Engine": "val1", "Max Results": 13892378, "Key_With^Special (characters)": true } Output: { "engine": "val1", "maxresults": 13892378, "keywithspecialcharacters": true }
javascript · Filters And Transformers
Details
| ID | ConvertKeysToTableFieldFormat |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | transformer |
README
Converts object keys to match table keys. Use this when mapping object/collection to table (grid) field.
(An array of objects/collections is also supported).
Example:
- Input: { “Engine”: “val1”, “Max Results”: 13892378, “Key_With^Special (characters)”: true }
- Output: { “engine”: “val1”, “maxresults”: 13892378, “keywithspecialcharacters”: true }
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | transformer |
Inputs
| Argument Name | Description |
|---|---|
| value | The object to convert. |
Outputs
There are no outputs for this script.
commonfields: id: ConvertKeysToTableFieldFormat version: -1 name: ConvertKeysToTableFieldFormat script: '' type: javascript tags: - transformer comment: |- Convert object keys to match table keys. Use when mapping object/collection to table (grid) field. (Array of objects/collections is also supported). Example: Input: { "Engine": "val1", "Max Results": 13892378, "Key_With^Special (characters)": true } Output: { "engine": "val1", "maxresults": 13892378, "keywithspecialcharacters": true } enabled: true args: - name: value required: true description: Object to convert scripttarget: 0 isllm: false runas: DBotWeakRole fromversion: 5.0.0