Info |
---|
|
This routine is available starting with Power Scripts™ 4.0.9 (server). Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | saveAttachmentFromEmail(attachmentName, | |
...
filePath) | Package | | Alias | | Pkg Usage | |
|
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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) |
---|
showLabels | false |
---|
max | 425 |
---|
showSpace | false |
---|
cql | label = "mail_handler_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_comment_routineroutines |
---|
|