Skip to main content
Question

I can not search the child folders inside an ancestor folder

  • May 23, 2025
  • 2 replies
  • 17 views

Forum|alt.badge.img

Hi,

I have cloned the template folder to another name, then after 10 minutes+ I use Box Search API (https://api.box.com/2.0/search?query=NOT 'some random string'&ancestor_folder_ids='some ids') (1). But I can not find my folders even that string is generated by UUID.

As I expect that I can search for all the folders and children of the children folders inside my parent folder (the result is not bigger than 200 records just around 50 records).

If I use the query='name of folder' (2), It return the folder's info I need. After that My search result just have that folder with the first query.

Can anybody explain me why this happened ?. And I how can I solved it. I ran into a big problem when It took too long to recursive all the folder inside a root folder with box. I figured out the solution that use API search to get All the folder at once. 

2 replies

Forum|alt.badge.img

Hi there, 

 

Welcome to Box Community and glad to help! 

 

We've created a new case and a member of our team will contact you through email, please keep an eye out. 

 

Thanks for posting!


Forum|alt.badge.img

Thank you for replying me, I realize that after a few hour after I create my folders I can search them with all the children folders and files inside it.