get_attachment
Retrieve attachment content by attachmentID, returning Base64 data, URLs, or HTML. Validates access and ensures user permissions before delivering results.
Instructions
Get the attachment content based on the attachmentID. Returns different content types: Base64 data for file type attachments, URL for URL type attachments, and HTML data for correspondence type attachments. The API validates the attachmentID and checks if the user has access to view the attachment before returning the content.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
attachmentID | Yes | Link-Attachment instance pzInsKey (attachment ID) to retrieve content for. Format example: "LINK-ATTACHMENT MYCO-PAC-WORK E-47009!20231016T062800.275 GMT". This is the complete instance handle key that uniquely identifies the attachment in the Pega system. The attachment must exist and be accessible to the current user. |