Previous Topic: getAllAttachmentsNext Topic: getCountOfProcessStates


getAttachmentContent

The getAttachmentContent function retrieves the content from an attachment and places it in a CA Process Automation dataset variable. This function has a 64KB limit to the size of the content it can retrieve.

Syntax

sAttachment = getAttachmentContent(lAttachmentID)

Arguments

lAttachmentID (long)

The unique ID that identifies the attachment where the content resides that is being retrieved.

Return Value

sAttachment (C2OString)

The content is returned as a C2OString.(com.optinuity.c2o.bean.C2OString).

Example

var i = Process.attachments[0].attachmentID;
Process.cont = getAttachmentContent(i);