BeforeAttachmentSave Event Example

This VBScript example notifies the user that the user is not allowed to save the attachment. It returns False to cancel the save operation.

Function Item_BeforeAttachmentSave(ByVal SaveAttachment)
    MsgBox "You are not allowed to save " & SaveAttachment.Name
    Item_BeforeAttachmentSave = False
End Function