Skip to content

Function: getAttachmentContent() ​

ts
function getAttachmentContent(
   client, 
   parameters, 
   options?
): Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>;

Defined in: src/serviceDesk/api/request.ts:354

Returns the contents of an attachment.

To return a thumbnail of the attachment, use servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail.

Permissions required: For the issue containing the attachment:

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ attachmentId: number; issueIdOrKey: string; }-
parameters.attachmentIdnumberThe ID for the attachment
parameters.issueIdOrKey?stringThe ID or key for the customer request the attachment is associated with
options?RequestOptions-

Returns ​

Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>