I am trying to create a zap that can search for a folder name based on a file ID or some method other than by folder name.
My zap is triggered off a new file being added to our Google Drive (any folder).
The data output from this trigger does not include the folder name for some reason, so I need a search step that can pull that information.
I tried the file title, ID and embed link as the search value with no luck. Any other suggestions?
Best answer by SamB
Hey there @c2b! 🙂
You’re right, it looks like we only get the folder ID not the name. And it’s only possible to search by folder name rather than ID on that Find a Folder action. There’s an existing feature request to allow the Find a Folder action to search by ID instead of just name so I’ve added your vote for that. We’ll email you as soon as it’s added.
One workaround in the meantime might be to add the folder name directly in the file title in a consistent naming convention like foldername_filename.pdf. Then you could use a Formatter (Text > Split Text) action to extract the folder name from the first part of the filename. For example:
Then you could use the extracted folder name in the Find a Folder step. Not ideal I know but might be worth a try in the meantime? If you give that workaround a try and run into any issues just let us know!
Perhaps you can explain your use case with more detail in terms of the Zap steps you are trying to configure beyond GDrive Find Folder and why you need the GDrive Folder Name so we have more context.
You’re right, it looks like we only get the folder ID not the name. And it’s only possible to search by folder name rather than ID on that Find a Folder action. There’s an existing feature request to allow the Find a Folder action to search by ID instead of just name so I’ve added your vote for that. We’ll email you as soon as it’s added.
One workaround in the meantime might be to add the folder name directly in the file title in a consistent naming convention like foldername_filename.pdf. Then you could use a Formatter (Text > Split Text) action to extract the folder name from the first part of the filename. For example:
Then you could use the extracted folder name in the Find a Folder step. Not ideal I know but might be worth a try in the meantime? If you give that workaround a try and run into any issues just let us know!