Support Article
Unable to open attachments from Cover of Covered WO attachments
SA-22566
Summary
User updated from Pega 7.1.7 to 7.1.9 and the Pega 7 Out-of-the-box (OOTB) gadget to show aCovered WorkObject attachments is not working. On Clicking the Show sub-case attachments check box, user is able to view the Sub case attachments, but the hyperlink is not getting generated. Specifically note attachments aren't having any hyperlinks.
Error Messages
Not Applicable
Steps to Reproduce
1) Include a cover and covered case.
2) Create Notes(attach a note) for the covered case.
3) On cover WorkObject, click the show sub-case attachments in the attachments gadget.
4) Attachments are shown without the hyperlink.
Root Cause
An issue in the custom application code or rules:
User customized pzgetattachmentsdata activity in PRPC 6.2 SP2 and then upgraded to 7.1.9. Using the activity customized in PRPC 6.x and using that activity in Pega 7.x is the root cause of the issue.
Resolution
Perform the following local-change:
There is no logic to copy link-attachment pages for note attachments in PRPC 6.x pzgetattachmentsdata actvity.
That is the reason users are not able to see hyperlinks on note attachments. The logic that must be present to copy link-attachment pages of note attachments is as follows:
if (strTempAttachmentClass.equals("Data-WorkAttach-Note")) {
myStepPage.put(".pyLabel", pgTempAttachmentPage.getProperty(".pyLabel"));
}
Incorporating the above logic in the java step where the links are copied solves the issue.
Published April 27, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.