Hi @dvdmeer
You could import this node-red configuration and swap out your template configurations with yours and should be what you need or can customise it to your needs.
[
{
"id": "05bbf25145aaa546",
"type": "group",
"z": "c265b7da38d60e67",
"name": "",
"style": {
"label": true
},
"nodes": [
"031e52954e4ee1eb",
"06cbc685570bb0bc",
"533ace59b5aeac17",
"bf28dec6fd256713",
"bdfc23270de1c1b0",
"18272e11c32d07f4",
"5938c195a99db2cf",
"ad67c67234c3275a",
"3922d236a51a24f6",
"3b8b18ff8808cd36",
"10268f1b61c93e2e"
],
"x": 34,
"y": 3679,
"w": 1092,
"h": 222
},
{
"id": "031e52954e4ee1eb",
"type": "olfnf-folder-capture-in",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"folder": "D:\\Sample In\\sample flow",
"folder_type": "str",
"create_directory": false,
"subfolder": false,
"ignoreempty": true,
"masks": "*.txt",
"masksregex": false,
"watchMethod": "fs",
"name": "",
"x": 150,
"y": 3800,
"wires": [
[
"10268f1b61c93e2e"
]
]
},
{
"id": "06cbc685570bb0bc",
"type": "file",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "write output",
"filename": "outputFilename",
"filenameType": "msg",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 810,
"y": 3860,
"wires": [
[]
]
},
{
"id": "533ace59b5aeac17",
"type": "debug",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "debug filename",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "filename",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1000,
"y": 3820,
"wires": []
},
{
"id": "bf28dec6fd256713",
"type": "olcnr-all-in-one",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"connect_server": "9614eb8e75445d6e",
"dmConfiguration": "Sample flow.OL-datamapper",
"template": "Sample flow.OL-template",
"jobPreset": "Sample flow.OL-jobpreset",
"outputPreset": "Sample flow.OL-outputpreset",
"downloadResult": false,
"outputOptions": "fileList",
"outputFolder": "D:\\Sample Out\\",
"outputFolder_type": "str",
"dataStorage": "database",
"datafile": "filename",
"deletefile": false,
"datafile_type": "msg",
"name": "All in One",
"x": 380,
"y": 3780,
"wires": [
[
"3922d236a51a24f6"
]
]
},
{
"id": "bdfc23270de1c1b0",
"type": "comment",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "Sample flow",
"info": "Sample flow",
"x": 130,
"y": 3720,
"wires": []
},
{
"id": "18272e11c32d07f4",
"type": "olfnf-file-operations",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"operation": "delete",
"source_file": "filename",
"source_file_type": "msg",
"target_file": "",
"target_file_type": "msg",
"create_directory": true,
"name": "delete data file",
"x": 840,
"y": 3780,
"wires": [
[]
]
},
{
"id": "5938c195a99db2cf",
"type": "catch",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "catch errors",
"scope": [],
"uncaught": false,
"x": 990,
"y": 3860,
"wires": [
[]
]
},
{
"id": "ad67c67234c3275a",
"type": "olcnr-file-download",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"connect_server": "323a7dd3e19674d6",
"file": "managedFileId",
"file_type": "msg",
"name": "",
"outputType": "buffer",
"x": 610,
"y": 3800,
"wires": [
[
"06cbc685570bb0bc",
"18272e11c32d07f4"
]
]
},
{
"id": "3922d236a51a24f6",
"type": "split",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"property": "payload",
"x": 410,
"y": 3860,
"wires": [
[
"3b8b18ff8808cd36"
]
]
},
{
"id": "3b8b18ff8808cd36",
"type": "change",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "",
"rules": [
{
"t": "set",
"p": "contentName",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "managedFileId",
"pt": "msg",
"to": "managedFileId & \"/\" & contentName",
"tot": "jsonata"
},
{
"t": "change",
"p": "contentName",
"pt": "msg",
"from": "Sample flow",
"fromt": "str",
"to": "outFile_name",
"tot": "msg"
},
{
"t": "set",
"p": "outputFilename",
"pt": "msg",
"to": "\"D:\\Sample Out\\" & contentName",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 560,
"y": 3860,
"wires": [
[
"ad67c67234c3275a"
]
]
},
{
"id": "10268f1b61c93e2e",
"type": "change",
"z": "c265b7da38d60e67",
"g": "05bbf25145aaa546",
"name": "",
"rules": [
{
"t": "set",
"p": "outFile_name",
"pt": "msg",
"to": "file.name",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 200,
"y": 3860,
"wires": [
[
"bf28dec6fd256713"
]
]
},
{
"id": "323a7dd3e19674d6",
"type": "OL Connect Server",
"url": "http://192.168.0.1:9340",
"ignorecer": true,
"name": "PlanetPress Server",
"disableProgress": false
}
]