Question
Open Attachments by link beyond the case
How can I open (download) attached file by the link beyond the case which this attachment belongs to?
P.S.
When I use "pega.ui.HarnessActions.doAttachmentSingleClick" with parameters:
nRow - 1
StrClass - ""
StrInsName - ""
strInsKey - .pzInsKey
strCategoryProp - null
strCategoryValue - File
pxLinkedRefTo - .pxLinkedRefTo
Displays error - Unable to open the attachment. You lack the required permissions.
When i use
Obj-Open-By-Handle with parameters
.pzInsKey or .pxLinkedRefTo
StepPage - Attach (Data-WorkAttach-File)
Java step
tools.sendFile (tools.findPage ("Attach"), "pyAttachStream", true, "pxAttachName", null, true, null, true);
Shows the same error
I tried using
Call Work-.GetAttachmentReference
Options:
.pzInsKey or .pxLinkedRefTo
Shows the same error
What does mean this error?
Hi
GetAttachmentReference activity must be calling a HTML rule to display the document.
In that script,the logic is defined for each Class the document can belong to. Have a look at it and confirm if the logic includes your "Data-WorkAttach-File" you may need to customize that.
If that looks fine, then just check the ARO's to confirm if your Userid have access to that class or not.
Regards
Bhavya