I am using Make to upload files from Airtable attachments into folders which are named XXXXXX-YY-Z based on a work order number. Folder name is retrieved from Airtable and then Dropbox search is being conducted.
Problem is that Dropbox search outputs wrong result when there are folder same XXXXXX-YY but different “Z” which confuses the search module.
Below attached shows clearly that search for a folder name “220524-20-2”, which in non existent in dropbox, outputs a bundle of 1 with “220524-20-3” as a result which leads to an error in downstream scenario.
Unfortunately, with Dropbox, their API doesn’t appear to provide a way to specify exact matches for that search endpoint. After some quick searches it seems others feel in your frustration with this.
There are a couple workarounds, though:
Do what you’re doing now, but add a filter after Dropbox that filters the bundles by the exact search term only. Any results that don’t match your original search term will not pass the filter.
Use a List all Files/Subfolders in a Folder module, then use the filter technique from the first option. This is less efficient because there will be more results to look through.
This search is followed by router module, which decides whether to create the folder (0 search bundles) of use existing folder (search bundles greater than zero).
Lets say the search module outputs false result saying folder exists but outputs wrong folder name (although searched folder really exists) filter being used will not pass the result as if folder does not exist and lead the router to scenario trying to create the folder ending up with error since the folder already exists.