Skip to main content
Solved

How to Retrieve a BoxItem (Folder/File) Directly by Path?

  • September 3, 2024
  • 3 replies
  • 60 views

ben halfon

Is there a more efficient way to retrieve a BoxItem (either a Folder or File) directly by its path in Box?

Currently, my approach involves starting at the root folder and recursively scanning through the items, matching each part of the path until I reach the desired item.
For example, with the path "Logs/Ben", I start at the root, iterate through its children until I find the "Logs" folder, then iterate through its children until I find the "Ben" folder.

This method works, but it involves multiple API calls, which I believe could be optimized.
Is there a way to directly access a BoxItem using its full path, thereby reducing the number of API calls my application needs to make?

Any guidance or alternative approaches would be greatly appreciated.

Best answer by Jey Bueno Box

Hi @ben halfon

I understand how retrieving a BoxItem directly by its path in Box is important for you. As of this moment, this is not yet possible. We would possibly take this into consideration as we periodically enhance our features and capabilities.

We would appreciate your time providing this insights in Pulse to help shape the future of Box. 😎

View original
Did this topic help you find an answer to your question?

3 replies

Jey Bueno Box
  • Community Manager
  • 315 replies
  • Answer
  • September 3, 2024

Hi @ben halfon

I understand how retrieving a BoxItem directly by its path in Box is important for you. As of this moment, this is not yet possible. We would possibly take this into consideration as we periodically enhance our features and capabilities.

We would appreciate your time providing this insights in Pulse to help shape the future of Box. 😎


ben halfon
  • Author
  • New Participant
  • 3 replies
  • September 4, 2024

Jey Bueno Box
  • Community Manager
  • 315 replies
  • September 4, 2024

We do appreciate your great feedback and idea! 😍


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings