Change the name of the file in the zip file that is retrieved from the file store

When I retrieve a file from the file store I download that as a zip file. The filename in the zip file in my case is always Quotation_0001.pdf and I would like to have this changed.
In the documentation for the file store upload node I noticed there is a baseline parameter that can be set, so I set it to the name that I would like to have.
I noticed that for the file store download node there is a parameter originalFilename that holds the original name of the file in the OL Connect File Store.
After the change I noticed no particular difference at all. And originalFilename is empty.

I do have an output creation node but in the preset there is nothing specified with regards to the filename.

How can I set the filename in the zip file to something else?

A bit of a belated reply, You can find some information on this topic in the following tutorial. There is one section describing how you can download the individual files from that zip straight from the file store.

Note that we are working on a new node to simplify this process and provide some extra flexibility.

Erik

In addition to the techniques mentioned by Erik above, you can also customize the job name in the Output preset. When you select Zip File in msg.payload as the output type, the file inside the zip will use the name you defined in the preset.
In the Output preset settings, check the directory option, and enter your desired job name. In All-in-One within Automate, select this Output preset and choose Zip file in msg.payload as the output option. The resulting will contain a PDF named according to the job name you specified in the preset as illustrated in the image below:

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
    }
]