I want to create a zip file with the binary input of 4 different nodes (acutall workflow).
I tried different ways like with merge nodes and list item nodes and code nodes, but I’m struggling everytime.
What does the actuall workflow do:
Webhook input contains 1 binary and 2 Google Drive File-IDs
Step 1: binary (png) is uploaded to Drive folder XYZ
Step 2+3: Download 2 Google Drive File-IDs (from a other Folder) and upload to folder XYZ
Step 4: binary (png) from webhook is converted to jpg and uploaded to folder XYZ
Missing: include all files from step 1-4 to one zip file.
Hi @RoP
this can be achieved with a mix of Merge and Item Lists nodes.
First, use the merge nodes to have all the binary files as separate output items of a Merge node.
Second, use Concatenate Items of the Item Lists node, with the option Include Binaries ON.
Then, you can use the Compress node, adding all the field names in the Binary Property parameter.
It is probably clearer if you check this demo workflow:
That’s fine for me, IF the names of the binarys will be exact the same in the future.
Because I need these ones: 0,data,data_1,0_3 (0_3 is a jpg, I have to be sure, that this jpg always will be 0_3)
If you get more files than expected, try to change how the nodes are plugged, see an example here:
If you don’t want to hardcode the number and name of the files in the Compression node you can use this expression in the Binary Property parameter: {{ Object.keys($binary).join(',') }}
this will write something like data,data_1,data_2,data_3 for you