Uploaded_By Email for Anonymous File Request Forms
AnsweredI have a file request form, where anonymous users have to enter a Description, an email address, and Upload file(s).
Given the ID of the folder these uploads are going to, I want the name, description, and uploader's email of every item in the folder.
• How do I retrieve the email of the anonymous uploader?
I tired using this endpoint:
https://api.box.com/2.0/folders/:folder_id/items
https://api.box.com/2.0/search?query=NOT%20"zzzzz"&ancestor_folder_ids=:folder_id
Now I can retrieve each item's name and description, but not the email of the anonymous uploader.
Querying the file ID directly also does not return the email:
https://api.box.com/2.0/files/:file_id
-
Hi Kusar
You can get the value by explicitly asking for the 'uploader_display_name' field in your API call
https://developer.box.com/reference/resources/file--full/#param-uploader_display_name
For example: https://api.box.com/2.0/folders/:folder_id/items?fields=id,name,upload_display_name
Rgds, Peter Christensen, Platform Solutions Engineer, Box
-
Thanks for the response, Peter -
I just tested using the endpoint https://api.box.com/2.0/folders/:folder_id/items?fields=uploader_display_name
and was able to retrieve the email.
Please sign in to leave a comment.
Comments
2 comments