args: - description: The input value. isArray: true name: value required: true - description: The relative path to the array from `value`. name: array_path - description: An array to merge from. isArray: true name: merge_with - description: A comma separated list of pairs [key of merge_with]:[key of value.arrah_path]. e.g. ip:dst_ip, hostname:dst_host. name: mapping required: true - description: The key to the value where each of the destination value is to be set. name: out_key - description: The relative path to the destination array where the marged array is set. name: out_path - auto: PREDEFINED defaultValue: "true" description: true if it allows to simply append source entries which doesn't match, otherwise false. name: appendable predefined: - "true" - "false" - name: conflict_strategy auto: PREDEFINED predefined: - merge - source - destination description: How to merge the values if the key conflicts. 'source' means data of 'merge_with', 'destination' means data of 'array_path'. defaultValue: merge - name: overwrite_by_source description: The comma separeted list of keys to overwrite by source value when the key conflicts. isArray: true - name: overwrite_by_destination description: The comma separeted list of keys to overwrite by destination value when the key conflicts. isArray: true comment: Each entry in an array is merged into the existing array if the keyed-value matches. commonfields: id: MergeDictArray version: -1 contentitemexportablefields: contentitemfields: fromServerVersion: "" enabled: true name: MergeDictArray runas: DBotWeakRole script: '' scripttarget: 0 tags: - transformer - general - entirelist type: javascript fromversion: 6.0.0 isllm: false tests: - MergeDictArray - Test