Telegram, image post, multiple resolutions, create spreadsheet file if not exist, get link for image file

I am trying to make this workflow,
user posts an image thru telegram bot, image caption contains some data
parse the data into separate fields, they will go into a sheet row, I want the link of the image in the sheet too
but the spreadsheet file might not exist
and telegram sends ALL the resolutions of the image selected, I just need one.

so I have two problems
I check if the output spreadsheet file exists, and use an if node to barcnh to create (by copy template file) or use use existing. now I have two nodes with file ID.. only one is set..

now the end node wants to use the fileid. but I haven’t found a way to combine these
merge, edit, code, all fail if one node didn’t execute.
edit was closest to setup, same output fields different inputs, but the second ALWAYS overlays the first.. so a good fileid ends up with undefined.. oops..

the second is multiple executions of part of the workflow..

the source trigger is the telegram bot which posts multiple messages for the same image

the if has true or false.. it ALWAYS executes BOTH ,

the second path ALWAYS creates a new instance of the spreadsheet file, which of course isn’t useful. and we create a second file image of the picture

I rearranged it like this and it works..