Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with Power Scripts 4.0.9 (server).
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

saveAttachmentFromEmail(attachmentName,

...

filePath)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Saves the attachment file from the incoming email to a specific file path.

Saves the attachment file from the incoming email to a specific file path.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

attachmentName

string

Yes

The name of the attachment from the incoming email.

...

Note that if there are multiple attachments with the same name, this will always attach the first one in the list.

filePath

string

Yes

File path where the attachment file is saved

Return

...

Type

booleanBoolean

'True' if the attachment file was successfully saved to the specified file path, 'false' otherwise.

...

Code Block
IncomingEmail mail = getIncomingEmail();

for(string att in mail.attachments) {
    saveAttachmentFromEmail	saveAttachmentFromEmail(att, "/tmp/guess" + att + ".tmp");
}

See also

Filter by label (Content by label)
showLabelsfalse
max425
showSpacefalse
cqllabel = "mail_handler_routine" and space = currentSpace ( )
labelsjiraarray_comment_routineroutines