function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravikant kediaRavikant kedia 

How to download uploaded file in box.com ?

I am doing integration salesforce with box.com so after uploading file i want the download that file.Like in google drive we set approval_prompt=force and response body contain webContentLink for to download that file.How i can get box.com downloadable link ?
Best Answer chosen by Ravikant kedia
Deepak Kumar ShyoranDeepak Kumar Shyoran
Try with following endpoint and you will be easy to doenload all file and folder from your box.con
Endpoint('https://api.box.com/2.0/folders/0/items?limit='+EncodingUtil.urlEncode('5','UTF-8')+'&offset='+EncodingUtil.urlEncode('0','UTF-8'));

All Answers

Deepak Kumar ShyoranDeepak Kumar Shyoran
Try with following endpoint and you will be easy to doenload all file and folder from your box.con
Endpoint('https://api.box.com/2.0/folders/0/items?limit='+EncodingUtil.urlEncode('5','UTF-8')+'&offset='+EncodingUtil.urlEncode('0','UTF-8'));
This was selected as the best answer
priyanshu nema 2priyanshu nema 2
Hi Deepak,
Now I am able to fetch files detail by using your mentioned endpoint.  can you please suggest the way to store that files in our salesforce file object.