Skip to main content
Best answer

Google Drive Filename logic

  • May 29, 2020
  • 2 replies
  • 115 views

andywingrave
Forum|alt.badge.img+9

Hello! I am trying to build a solution at the moment that requires the search of a filename in Google drive. 

The filename will be a duplicate filename and will exist in many places across the Drive e.g.

  • Customers > March > “Filename.txt” 
  • Root > Invoices > “Filename.txt”
  • Customers > June > “Filename.txt

I know I could do a bunch of tests to work this out, but I wondered - Does anyone know, off-hand which it will pick and what this is based on (e.g. Folder/File structure, Last created, Last updated etc)

Best answer by andywingrave

Alright fine. I tested it, and thought I’d share my findings. After an hour of trying everything I can categorically say that it will pull in the file that was last updated. 

Which works for my use case, so I’m happy

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

andywingrave
Forum|alt.badge.img+9
  • Author
  • Zapier Solution Partner
  • Answer
  • May 29, 2020

Alright fine. I tested it, and thought I’d share my findings. After an hour of trying everything I can categorically say that it will pull in the file that was last updated. 

Which works for my use case, so I’m happy

 


Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • June 1, 2020

Nice work and thanks for sharing the result! 🙌