Question

2
Replies
657
Views
RazdinM9840 Member since 2018 26 posts
Pegasystems Limited
Posted: 2 years ago
Last activity: 2 years ago
Closed

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?

Low-Code App Development Dev/Designer Studio
Moderation Team has archived post
Share this page LinkedIn