Description
When you paste a template, this macro attaches the specified file to the current email message.
Calendar
When you paste a template, this macro attaches the specified file to the current calendar event.
Notes
You can attach files from public URLs and from a OneDrive or SharePoint documents folder (library) that is either yours or shared with you. In case of OneDrive and SharePoint, you can interactively select a file when inserting or editing the macro—the "driveId", "fileId", and "filePath" parameters will be specified automatically.
Syntax
~%Attach{
"from":"onedrive" | "sharepoint" | "url",
// in case of OneDrive or SharePoint
("driveId":"textvalue",
"fileId":"textvalue",
"fileName":"textvalue", )
|
("filePath":"textvalue",)
// in case of URL
"url":"textvalue"
}
Works for
- Email templates.
- Calendar event templates.
- Mail Merge templates.
Examples of use
~%Attach{"from":"onedrive",
"driveId":"b!KcbG9kiYIU2Kmgm7vrtGhoLoFmuc0pxNta9oiYsPWLvZQFvXn7EaTbpna1H1icdP",
"fileId":"012PX5JPC6KMBJAMYJSZGJ4W4B6AYFALRR","fileName":"icon.png"}
Deprecated macros
- AttachFromOneDrive
- AttachFromSharePoint
- AttachFromURL