Unable to attach a pdf attachment using Connect-HTTP from tomcat server path
Hi,
I have been trying to attach a PDF file from tomcat server path(F:\Pega719\work\Catalina\localhost\prweb\TestResults) to a case but i am unable to.
-->I have created a Connect-HTTP rule(DownloadFile) where i have passed below parameters in response tab and HTTP method as GET:
MAP TO:clipboard
MAP TO KEY:.BinaryData(java object property)
--> An activity to call the connect-HTTP rule on mypage steppage and below are the params passed:
Service Name:DownloadFile
ExecutionMode:Run
EndPoint URL :Param.EndPoint+"/"+Param.PDFName
-->Post to which i am setting the parameter(Param.PDFDocument) as .BinaryData on mypage steppage
-->Post to which i am calling the activity(call Code-Pega-PDF.AttachToWork) with current parameter page.
-->Param tab is filled with below:
EndPoint with datatype as string
PDFName with datatype as string
PDFDocument with datatype as java object
InsHandle with datatype as string
-->While running the activity,i am passing belwo values in params.
EndPoint : http:// Proprietary information hidden:7190/prweb/TestResults
PDFName : Test.pdf
PDFDocument :
InsHandle : WIPR-RESTFULINTEGRATION-WORK R-80
Activity is getting success but when i am checking in clipboardpage(my page) below error i am getting.
Hi,
I have been trying to attach a PDF file from tomcat server path(F:\Pega719\work\Catalina\localhost\prweb\TestResults) to a case but i am unable to.
-->I have created a Connect-HTTP rule(DownloadFile) where i have passed below parameters in response tab and HTTP method as GET:
MAP TO:clipboard
MAP TO KEY:.BinaryData(java object property)
--> An activity to call the connect-HTTP rule on mypage steppage and below are the params passed:
Service Name:DownloadFile
ExecutionMode:Run
EndPoint URL :Param.EndPoint+"/"+Param.PDFName
-->Post to which i am setting the parameter(Param.PDFDocument) as .BinaryData on mypage steppage
-->Post to which i am calling the activity(call Code-Pega-PDF.AttachToWork) with current parameter page.
-->Param tab is filled with below:
EndPoint with datatype as string
PDFName with datatype as string
PDFDocument with datatype as java object
InsHandle with datatype as string
-->While running the activity,i am passing belwo values in params.
EndPoint : http:// Proprietary information hidden:7190/prweb/TestResults
PDFName : Test.pdf
PDFDocument :
InsHandle : WIPR-RESTFULINTEGRATION-WORK R-80
Activity is getting success but when i am checking in clipboardpage(my page) below error i am getting.
304 | |
The server sent a status code of 304, indicating that nothing has changed since the last request. // The body of the service's response, which is set up for mapping in the Connector rule, was empty for this service call. |
Can anyone let me know how to resolve the issue also if i can use file listener to carry on this task and how.
Thanks,
Ambit
***Edited by Maryrita, Moderator: moved to Product Support from Applications***