If node while searching for google drive folder

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.

  1. Go to Drive node settings, and Activate always output data fields
  2. Go to your if node, change from {{ $json.id }} to {{ $json }}, and change the input from String > is empty, to Object > is empty

I’ve created one for u

If it helps, kindly mark my message as solution, thanks!

1 Like

Tried that, {{json.id}} is undefined which is expected, but again no output from the If.

Look at my new message, I’ve created example for u

Excellent this worked. Thanks

You’re welcome!