Close popover
Bharatesh Chougala (CHOUGALB)
Incessant Technologies

Incessant Technologies
CHOUGALB Member since 2007 4 posts
Incessant Technologies
Posted: September 24, 2018
Last activity: November 13, 2018

Provide a document downloadable link/direct download option for documents stored in Amazon S3 webstorage

We have a requirement to provide a downloadable link for the attachments uploaded in the work objects. Downloadable link needs to be provided as a REST service response which is exposed by Pega. As documents are stored in Amazon S3 there is no direct download link to documents without logging into pega. Below is the sample document location:


Also tried the direct download option by using sendFile() api but this works when service executed from Pega standalone. When we call the service from postman/SOAP UI, document download pop-up appears but there is no content and documents are getting corrupted.

Used below java in service activity to Service activity is

String fileSpec = myStepPage.getString("spec");
PRFile remoteFile = new PRFile(fileSpec);
tools.sendFile( remoteFile, false, null, true );
catch ( Exception e ) {
throw new PRRuntimeException(e);
Requesting inputs if anyone has come across this requirement.
Pega Platform Cloud Services
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.