@AttachmentNames (Formula Language)

Returns the operating system file names of any files attached to a document. If there are multiple files attached, the names are returned as a multiple-value text list.

Syntax

@AttachmentNames( excludeMIMEBody )

Parameters

excludeMIMEBody

Boolean. Optional.

  • Specify True (1) to exclude large MIME parts that are stored as attachments (but displayed in-line). This is the default.
  • Specify False (0) to include large MIME parts that are stored as attachments (but displayed in-line).

Return value

names

Text or text list.

  • If the current document contains one attachment, names is text representing the file name of that attachment.
  • If the current document contains more than one attachment, names is a text list where each itemis the file name of one of the attachments.

Examples

  1. If a file named SALESQ1.WK4 is attached to the document, this example returns: SALESQ1.WK4.
    @AttachmentNames
  2. Given a semicolon as the multivalue separator, if files named SALESQ1.WK4 and ADMIN.DOC are attached to the document, this example returns: SALESQ1.WK4; ADMIN.DOC.
    @AttachmentNames