Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Fetching particular Folder items (for type=file) after a specific date.

New post

Comments

3 comments

  • Rui Barbosa

    Hi,

    This can have multiple reasons, none of them related with "doing something wrong", and it could be as simple as ehe user that created the developer token does not have access to the file.

    So if you just search the content of the parent folder (without any more parameters), does it list the file?

    if so this means the search parameters are incorrect or the search hasn't indexed the file (unlikely if the file has not been created in the last few minutes).

    If you list the contents of the folder (as opposed to search) does it list the file? 

    If not this means the user associated with the API token does not have permissions to access the file.

    Let us know.

    0
    Comment actions Permalink
  • Box User

    Okay, 
    I checked user have access to this file.
    I am getting this file when I list the item of the file using folder id.

    If u think search parameters were incorrect. 
    please point out where I am doing it wrong.
    The API call was : 

    https://api.box.com/2.0/search?query=Autotest&ancestor_folder_ids=190051656573&fields=id,name&type=file&updated_at_range=2021-05-15T13:35:01-07:00,2023-01-20T13:35:01-07:00

    Please let me know.

    0
    Comment actions Permalink
  • Rui Barbosa

    It looks fine to me.

    If you apply that type of filter to any other content, does it find it?

    0
    Comment actions Permalink

Please sign in to leave a comment.