~%Attach

Description

Email

When you insert a template, this macro attaches the specified file(s) to the current email message.

Calendar

When you insert a template, this macro attaches the specified file(s) to the current appointment or meeting.

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", "fileName", and "filePath" parameters will be specified automatically.

Syntax

~%Attach{
     "from":"onedrive" | "sharepoint" | "url" | "onedrive_folder" | "sharepoint_folder",
     // in case of OneDrive or SharePoint
     ("driveId":"textvalue",
     "fileId":"textvalue",
     "fileName":"textvalue", )
     ("filePath":"textvalue",)
     // in case of URL
     "url":"textvalue"
}

Works for

  • Email templates.
  • Appointment and meeting templates.
  • Mail Merge templates.

Examples of use

~%Attach{
     "from":"onedrive",
     "fileName":"Coupon.pdf",
     "driveId":"b!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
     "fileId":"01xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
     "filePath":"/b!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/root:/Shared/Sales /Coupon.pdf"
}

Deprecated macros

  • AttachFromOneDrive
  • AttachFromSharePoint
  • AttachFromURL

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.