Question
Stella
US
Last activity: 9 Apr 2019 10:19 EDT
Unable to download file from Service Export directory
I generated a word document using pzGenerateDocument. The url that is returned seems to imply the file has been generated in the service export folder. I need to download this file to my desktop. How do I accomplish this? I tried using downloadFile function but it can't find the file. I also tried using straight java code to access the file but it cannot find the file either. I am told by pega cloud support that the file is there and has data in it as we are operating in the pega cloud. I've tried specifying the path a number of different ways neither of which I am able to find the file.
I generated a word document using pzGenerateDocument. The url that is returned seems to imply the file has been generated in the service export folder. I need to download this file to my desktop. How do I accomplish this? I tried using downloadFile function but it can't find the file. I also tried using straight java code to access the file but it cannot find the file either. I am told by pega cloud support that the file is there and has data in it as we are operating in the pega cloud. I've tried specifying the path a number of different ways neither of which I am able to find the file.
url=com.pegarules.generated.pega_appdefinition_documentapp.pzGenerateDocument("BCBSMSFax1", tools, "NS-FW-MR-Work-RequestRecords", null);
}catch(Exception e)
{
oLog.error("Error in generating the document" + e.getMessage() + url);
}
java.io.FileInputStream fileInputStream=null;
try {
fileInputStream.close();
}
e.printStackTrace();
//pega_rules_default.downloadFile(url, tools, false);
***Edited by Moderator Marissa to update platform capability tags; add SR Details****