~%Attach

Description

Email

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 "fileName" 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.webp"}

Deprecated macros

  • AttachFromOneDrive
  • AttachFromSharePoint
  • AttachFromURL

Advanced use

How to add contextual attachments from OneDrive
How to dynamically attach from OneDrive

Post a comment

Seen by everyone, do not publish license keys and sensitive personal info!

If you have any questions or issues with this add-in, please feel free to post your concerns in the comments area. As soon as we answer, a notification message will be sent to your e-mail. If you do not want to share your thoughts in public, please contact us at support@ablebits.com.