Get Google drive location

Status: Closed · Asked by Tanya Saxena on · 0 views

Tanya Saxena — Question ·

Whenever a new file gets uploaded in Google Drive > I wish to get the name of the parent's folders so that I can use it to rename the file.

Eg: Trigger: file gets uploaded in (Path: My drive > Companies > IBM > 144 > Newfile.pdf)
Action: Rename "Newfile.pdf" as "IBM 144 Newfile.pdf"(derived from the folder name in which it's uploaded).

But all information that we could get from Google Drive triggers and action steps is just the file name, file Id, and Parent ID. How to get a Parent folder name or a proper file location or path?

Tanya Saxena — Reply ·

If you could just add actions like:
1. "Get the parent folder name"
and
2. "get folder name from the id" that would really help

Pabblymember11 — Reply ·

Hey @Tanya Saxena

Kindly try the "Global Search" action step once to search the name of the folder via Id of it.

Tanya Saxena — Reply ·

Shows an error. And the value that goes is 'field' is what we wanna get in response. Right? not the value by which we wish to search?

Attachments

googlr drive.jpg
Pabblymember11 — Reply ·

Hey @Tanya Saxena

We have checked all the possibilities for searching the folder with the help of its Id but unfortunately, there is no option available to do so.

Pabblymember11 — Reply ·

Kindly try the following action step once which we have created for the desired task.

Tanya Saxena — Reply ·

Ohh wow! How did I miss that. Thank u so much!

Back to all forum threads · Log in to reply