We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
edodgen
3 years agoNew member | Level 2
API File Search
I have written this code out in many different ways. I FINALLY got it to work within the limit rates, but now my search is not returning matches. I am just trying to find ANY image filename in ...
Greg-DB
Dropbox Community Moderator
3 years agoIf I understand, it sounds like you're calling 'filesSearchV2' with a particular 'query' that is expected to match something in the connected account, but 'response.matches' is coming back empty. Is that correct? In that case, it would be best to open a ticket here from the affected account and include the options you are using, including a sample 'query' value, that are unexpectedly not producing results so we can look into it specifically for you.
- Greg-DB3 years ago
Dropbox Community Moderator
edodgen I was looking through your code, and I see you're using 'response.matches' to access the search matches. What version number of the SDK are you using? If you're using v6 or greater, you should instead access the matches as 'response.result.matches'.
Also, I notice you're using parameters from FilesSearchArg which is meant for filesSearch; for the newer filesSearchV2 you should be using FilesSearchV2Arg instead.
Please try those changes and let us know if that helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!