Lotus Script detach files not part of an embedded attachment
Daniel Nashed – 8 June 2025 09:09:06
Usually you navigate thru embedded attachments which are part of a richtext item.
But there is also a way to detach files which are not part of an richtext item.
Here is the documentation:
https://help.hcl-software.com/dom_designer/14.0.0/basic/H_GETATTACHMENT_METHOD.html
You can navigate thru the items to find the $File items and extract all of them.
Here is an example:
Dim embedded As NotesEmbeddedObject
...
Forall x In doc.Items
Set item = x
If item.Name = "$FILE" Then
Set embedded = doc.GetAttachment(item.Values(0))
If Not embedded Is Nothing Then
Call embedded.ExtractFile (GitProjectDir + "\json\" + embedded.Name)
count = count + 1
End If
End If
End Forall
- Comments [0]