How To Lookup the Parent Folder Of A Document In GDrive

I’m working on a Workflow that creates a template document, next to another document in google Docs / Drive

I have the document ID in the first node, and I can create a document and move it using the Google Drive node, but I can’t find a way to lookup the parent folder of the first document so I can move the new document next to it in that folder.

The Google Docs “Get” doesn’t return any metadata about the first document except document ID and the Google Drive Search doesn’t allow you to use document ID from what I can see?

Is there a google drive advances search operator I can use with the document ID? How do I return only a folder?

Is there an easier way to achieve what I’m trying to do?

Hey, you can use an HTTP node to make a request to the Google Drive API for this:

https://www.googleapis.com/drive/v3/files/FILE_ID?fields=parents

Please mark this as Solution if it helped :slight_smile:

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.