Get Google drive location
Status: Closed · Asked by Tanya Saxena on · 0 views
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?
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
Hey @Tanya Saxena
Kindly try the "Global Search" action step once to search the name of the folder via Id of it.

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

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.
Kindly try the following action step once which we have created for the desired task.

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