I’ve got a workflow that triggers on a new file uploaded to a OneDrive folder. As part of the workflow, I need to get the file and upload it to an API. To do this I use:
A OneDrive file node that gets the value based on the file id from the trigger.
A Set File Field that - from what I saw in my research working on the workflow, is required if you want to upload those bits an API
My workflow works - yet when I’m looking at the Set File Field node, it always reports {{ data }} as undefined.
Shoot, you know, I had this system (Download file, set file field), based on a search result I found while building the workflow and I thought it was necessary. I duplicated my workflow, nuked that node, which honestly felt weird and unnecessary, and my flow works just fine. I apologize for the noise, but I’m happier my workflow is simpler.
With what I found, it still works and is not green because it is not explicit reference like:{{ $('Download file').item.binary.data }} but direct reference making ui validator to fail but n8n engine recognizes it.
using direct references like (data), data, {data}, {{data}}, ((data)) all works which shows how powerful n8n engine is.