Welcome to the new Box Support website. Check out all the details here on what’s changed.

Get Folder’s Items API total_items not accurate

Answered
New post

Comments

2 comments

  • jmoldow_box

    Because of the way we query our database for collaborations, the total_count for the root folder may appear to be higher than it actually is. The "missing" items aren't hidden, they just don't appear in the root folder.

     

    The set of items in the entries list is the authoratative set of top-level items in your account. The total_count can be used as a rough measure of how large your root folder is, but in general might be higher than it should be.

    0
    Comment actions Permalink
  • SalsaShark42

    Could you elaborate on this?  What, exactly, could the two additional items be, in the example provided?  If I want to get an accurate count of the actual items, I need to do a len(entries) instead of relying on total_count?  Could that be added to the API documentation as I've already coded a customer application to use total_count?

    0
    Comment actions Permalink

Please sign in to leave a comment.