Hi, I am trying to create a workflow where if a folder on Google Drive does not exist, we create it, if it does exist, we upload the file generated by the workflow to that folder. I am struggling with the part where the folder does not exist. The Google Drive node does not output anything because it cannot find the folder, and the If node keeps saying “Execute this node to view data” even after executing the node. There’s another topic here with a very similar issue, tried that solution but it is not working for me. Any thoughts on how I can resolve this?
Try to change condition inside If node to {{json.id}}
without || ''
I found solution.
- Go to
Drive node
settings, and Activatealways output data
fields - Go to your
if
node, change from{{ $json.id }}
to{{ $json }}
, and change the input fromString > is empty
, toObject > is empty
I’ve created one for u
If it helps, kindly mark my message as solution, thanks!
1 Like
Look at my new message, I’ve created example for u
Excellent this worked. Thanks
You’re welcome!