@Attachments (Formula Language)
Returns the number of files attached to a document.
Syntax
@Attachments( 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
numFiles
Number. The number of files attached to the current document.
Usage in a Column Formula
When used in a column formula in a view or folder, @If(@Attachments;5;0) can be used to display the paper clip icon if the current document has one or more attachments, or displays a blank if there are no attachments. This is the formula used to indicate attachments in the Notes/Domino mail template. For this formula to work, you must select Icon in the Column Definition dialog box for this column.
Examples
- This example returns 3 if there are three files attached to a
document.
@Attachments
- This example returns 0 if there are no files attached to a document.
@Attachments