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

box comment of all files

New post

Comments

1 comment

  • Murtza

    You will first need to get a list of the user's files, and then request the comments on each of the files.

     

    Here is an example using our Java SDK that shows how to iterate over a folder's items:

     

    BoxFolder folder = new BoxFolder(api, "id");
    for (BoxItem.Info itemInfo : folder) {
        if (itemInfo instanceof BoxFile.Info) {
            BoxFile.Info fileInfo = (BoxFile.Info) itemInfo;
            // Do something with the file.
        } else if (itemInfo instanceof BoxFolder.Info) {
            BoxFolder.Info folderInfo = (BoxFolder.Info) itemInfo;
            // Do something with the folder.
        }
    }

     

    Here is an example using our Java SDK that shows how to get all comments on a file: 

     

    BoxFile file = new BoxFile(api, "id");
    List comments = file.getComments();

     

    We have SDKs in many languages. What language do you need an example for?

    0
    Comment actions Permalink

Please sign in to leave a comment.