You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
shripaldalal
9 months agoNew member | Level 2
Dropbox API Search Not Working
We have integrated the API with our ERP system, where we can upload files prefixed by the document number. So one document can have multiple files.
SAMEX_23-24_0937_PDF1.pdf
SAMEX_23-24_0937_PDF2.pdf
Now when we search in the Dropbox web site "SAMEX_23-24_0937" we see both the files. But if we use the same option with double quotes in the API, we only see the first file. Till now it was working perfectly but it seems to have stopped from yesterday.
Even funnier in some cases for some document numbers like for example "SAMEX_23-24_0902" we see all the files that have been uploaded.
Please help as our entire document management has come to a stand still for this reason and this is non negotiable. All our customers use paid dropbox.
Quick Edit: I see only 1 file from the Chooser App, but I can see multiple files from the Dropbox main web site for a particular document. Thanks.
- Greg-DBDropbox Staff
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of the unexpected output
If you wish to share privately, you can open an API ticket here.
- shripaldalal1Explorer | Level 3
Funny thing is it asks me to take a new community username everytime, yesterday I posted as shripaldalal, today I had to compulsorily take shripaldalal1. What a nightmare.
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/4.0.30/Dropbox-sdk.min.js"></script>
This is the API.
function getFiles() {var dbx = new Dropbox.Dropbox({accessToken: ACCESS_TOKEN});dbx.filesSearch({ path: '', query: '"2324-CBB-PV00177"_' }).then(function(response) {console.log('response', response);}}).catch(function(error) {console.log('Error', error);alert('Error! Please check log!');});}Before I got all files that started with 2324-CBB-PV00177, now I get only one file that starts with 2324-CBB-PV00177.The worse is the same problem is in Chooser as well.I can't post the HTML so the code is a bit haphazard apologise for the same.- Greg-DBDropbox Staff
I see you've actually posted from two different accounts. You use your Dropbox account to access the forum, so it looks like you have two different Dropbox accounts, and used different ones to sign in and post your two forum comments so far. That would explain why you had to set the username again.
Also, since it looks like you're working with multiple different accounts, can you double check that you're signed in to the right account when when performing these searches? For the API, you can check which account you're connected to by calling usersGetCurrentAccount. In the Chooser, you can check using the button in the lower left, and on the web site you can check using the button in the upper right. Make sure you're signed in to the correct account with the expected files in each case.
Anyway, I notice that your query parameter value seems to have some extra " characters around the actual search string, as well as a trailing _. Can you try again without those extra characters and share the output?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 9 minutes agoIf 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 or Facebook.
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!