How to get File Request Link for a folder
- [ X] I have checked that the SDK documentation doesn't solve my issue.
- [ X] I have checked that the API documentation doesn't solve my issue.
- [ X] I have searched the Box Developer Forums and my issue isn't already reported.
- [ X] I have searched Issues in this repo and my issue isn't already reported.
Description of the Issue
Need help!
How can we get the Link for file request to a folder using box-api sdk java.
So that we can we can send by email to friend to upload files. ?
Is it possible to send email by using api.?
Please suggest me the solution?
Thank you in advance!
Versions Used
Java SDK: 2.47 Java: open jdk 12.0.2
@amitbatajoo This was just recently released and there is still no endpoint coverage for this. When there is, we will add it to the Java SDK and let you know.
@sujaygarlanka Thank you for your reply. Please teach me after the it is solved. Also, is there any method to send file send request by the use of email using sdk api java? If there is, please help me!
@sujaygarlanka @PJSimon
This was just recently released and there is still no endpoint coverage for this. When there is, we will add it to the Java SDK and let you know.
Is it possible to tell me, how long time it will take to add this feature in api? Hope it will happen soon.
Thank you in advance!
@amitbatajoo The API coverage is tentatively planned for August. This is not a hard commit internally, so we cannot guarantee it will be out by then.
Hello @amitbatajoo, The API to manage FileRequests is available. API allows you to copy existing template to a folder. You will need to create template following instructions here.
You can read about SDK usage here.
// this is the ID of the request that you have created
var fileRequestRemplate = "request_template_id";
var fileRequest = new BoxFileRequest(api, fileRequestRemplate);
// this is the ID of the folder you want to copy template to
// after copying you will be able to get URL that can be used by others to upload files
// they will not need to have Box account
var folderToShareId = "id_of_the_folder_you_want_to_share";
BoxFileRequest.Info newFileRequestInfo = fileRequest.new Info();
newFileRequestInfo.setDescription("I'm sharing a folder with you");
newFileRequestInfo.setIsDescriptionRequired(true);
newFileRequestInfo.setStatus(BoxFileRequest.Status.ACTIVE);
newFileRequestInfo = fileRequest.copyInfo(newFileRequestInfo, folderToShareId);
// others can use this URL to upload files
var shareUrl = newFileRequestInfo.getUrl().toString();
Java SDK will not sent an email with the link. You will have to do that yourself.
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Java SDK and feel free to open another PR/issue at any time.