I’ve integrated box with my dotnet application, I’ve created folder via our application in box and after uploaded few files in the particular folder. After I tried to search that specific file with file name and parent folder id it returning empty result at the time of file uploaded, after few minutes(around 5-10 minutes) later when we try with the same API call, it bring the expected results. Please find the used code in below and suggest or share your thoughts.
Client.SearchManager.QueryAsync(
fileName,
ancestorFolderIds: new List<string>() { parentFolderId },
fields: new[] { "id,name,type,path_collection,size,created_at,modified_at" },
limit: 30)