Extension

Gets the file name extension of the attachment.

Property value

String (read-only)

Examples
Copy
var newname;
newname = AttItem.Name + "MyAttachment" + AttItem.Extension;

Adds the string MyAttachment as a suffix to the original file name of the attachment stored in the AttItem variable. Keeps the file name extension of the attachment. Stores the new file name of the attachment in the newname variable.