Get Folder Email Address Through HTTP GET/POST Request
AnsweredHi All,
I have a folder in Box which has "Upload via email" option turned on. Is there a way by which I can get the email address of the folder through an HTTP GET/POST call?
I am asking this because I am creating PL/SQL program which will send email with file attachment to the folder's email address for file upload, hence I would like to design/develop the program in a way so that if I just give the folder name as the input parameter, it should be able to fetch the folder's email id and send email to it.
Thanks,
Abhishek
-
Hi Abishek
You can get the 'folder_upload_email' field by specifying in the API call. https://developer.box.com/reference/resources/folder--full/#param-folder_upload_email-email see this link for all folder fields.
You need the folderId to retrieve the folder, you cannot fetch by name only.
Eg. https://api.box.com/2.0/folders/113972940176?fields=id,name,folder_upload_email
Would return this if the email upload is enabled.
{
"type": "folder",
"id": "113972940176",
"etag": "0",
"name": "Secure Document Folder",
"folder_upload_email": {
"access": "open",
"email": "Secure_.7sdoh7gyk709lvu4@u.box.com"
}
}Rgds,
Peter Christensen, Platform Solutions Engineer, Box
Please sign in to leave a comment.
Comments
1 comment