Close popover
Matthieu Benvenuti (MatthieuB)
Air France

Air France
MatthieuB Member since 2016 1 post
Air France
Posted: January 12, 2018
Last activity: February 26, 2018

Attachment link management

We need to download attachments of a case from a java 7 application.
For that purpose, the PEGA platform has been configured to send a link in the JMS message as follow :
...<attach1>https://mypegaserver/prweb?pyActivity=Work-.GetAttachmentReference&amp;linkInsHandle=LINK-ATTACHMENT%20AFKLM-ICARE-WORK%20C-3462!20171124T090544.222%20GMT</attach1&gt; ...
When we copy paste the link into a web browser, we are able to download the file manually but the java 7 application that is retrieving the message is downloading a javascript file.
As we can see, the web browser is interpreting the javascript and then downloading the attachment.

Is there a way that PEGA is providing a direct download link ?

If not, could you provide a method in java 7 to execute the javascript and download the file ?
Parsing the javascript file and search for the direct link is not a proper solution if the file structure changes.

Thank you for your help.


Data Integration Java and Activities Case Management SR Exists
Moderation Team has archived post