Box Sync problem
Hi, I have created a VSTO add-in for Excel.
I found that when i am uploading an file on to the Box local drive/ Box cloud drive and hitting the search api of box, I am not getting the file from the api call(I believe that the File ID is not been created immediately when file is uploaded).
But when the search api call is made after some time(around 8 - 10 mins) then the file is found the from the same api as well as the File ID is created.
So is there any solution for this type of Sync issue?
Please do help me if anyone has any idea for the same.
Thanks,
Ajeet
-
Hi ,
As you saw with the 8-10min retry, search has about a 5-10min indexing time, so that's the expected behavior. I'd suggest a few things in this instance:
- When you upload a file you receive back the file information immediately. You can intermix that immediate file information with the search results to surface up that information.
- If you are trying to surface up all information for a user / folder then you can fetch the file / folder information and surface up everything instead of using the search endpoint. Basically using a folder structure that is conducive for your needs can avoid the need for the immediate search.
Hope that helps,
Jon
Please sign in to leave a comment.
Comments
1 comment