Skip to main content
Box Employee
May 27, 2025 7:27 AM UTC
Question

Querying a recently created file or folder

I am using the C# sdk.  I am creating a folder and uploading a file.  A few seconds later, I query the for the folder that was created.  I get no results and attempt to create the folder again.  The system then tells me that the folder name has already been used.

I have the same issue with uploading a file.  I query to see if the file exists and get no results.  I then try to upload the file and it tells me that the file is already present.

This apparently has something to do with internal indexing.

Since this is an automation, I need for the query to return a folder if it has been created, even if it was 2 seconds ago.  How should I deal with this problem.

Danny