Manage Learn to apply best practices and optimize your operations.

Count Attachments In Open Document

When counting attachments in an open document via script I encountered problems
using NotesEmbeddedObject. I solved it by using Evaluate.
This example gives a message if there are more than one attachment in the

Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDOcument
Set uidoc=ws.CurrentDocument
Set doc = uidoc.Document

If count_attachments(0)>"1" Then
Messagebox "Use only one attachment!"
End If

Dig Deeper on Lotus Notes Domino Administration Tools



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...