Hi,I need to remove an attachment on a document.
I want to use the remove method of the notesembeddedobject, BUT i do not know what the attachment name will be:
Set rtitem = doc.GetFirstItem( “RGDocumentation1” )
If ( rtitem.Type = RICHTEXT ) Then
Set object = rtitem.GetEmbeddedObject( “Name of attachment” )
Call object.Remove
Call doc.Save( True, True )
e.g. in this line, how can I specifiy ‘whatever attachments in the RGDocumentation1 field’.
The notes help example is a total waste of space, as it assumes you will know what the attachment is called. In practice, for me at least, this is never the case…
p.s. yes i’ve tried adding a $v2attachmentoptions field, this makes no difference…