Type parameters
Hierarchy
-
ItemRef<MailMessageItem>
- MailMessageItemRef
Properties
Readonly code
App code of the URL’s target (the app’s code).
Readonly id
ID of the URL’s target.
Readonly namespace
Namespace of the URL target (the code of the workspace that the app belongs to).
Methods
fetch
-
Request complete data of a reference object.
Returns Promise<MailMessageItem>
getAttachments
-
The method uploads attachments from the email service to the file storage and returns their IDs.
The method generates the following errors: If the email’s ID (
__id
) in theMailMessageItem
is invalid, or an email with this ID is not found,
the “Not found” error message will be returned.const attachments = await message.getAttachments();
Returns Promise<FileItemRef[]>
Link to email