Hi,
I am a dev new to n8n and here is my first workflow to solve one problem : the google drive api does not recursively give you all subfolders, you need to orchestrate several api calls to have all subfolders.
This workflow lets you make a webhook call with the id, and you get a list of all subfolders ids.
I have two objectives with this post:
- share it since it seems to be a shared problem not solved in n8n after a few searches
- Understand what I did wrong designing my workflow because this was so hard to implement and took so much time when it is easy to do in pure code.
Here is the workflow
I hope it helps someone in need but also here are my observations/questions coming from a dev experience:
- The only reason I did not do this a a single code node is because I lack the ability to import the google drive credentials from n8n in the code node. Very frustrating. So I had to use the google drive node and “play” around it.
- I would love to know all the things I did there that are not in the spirit of n8n or that I could have done more easily. I think my solution is too “convoluted”.
Thanks a lot for any remarks, I think I must be doing something wrong for it to be so hard to do something so simple .