Brian Daltilio 1.Dec.05 03:20 PM a Web browser Domino Designer 6.5.4; 6.5.3 FP1; 6.5.3; 6.5.2 FP1; 6.5.2; 6.5.1; 6.5; 6.0.5; 6.0.4; 6.0.3; 6.0.2 CF2; 6.0.2 CF1; 6.0.2; 6.0.1 CF3; 6.0.1 CF2; 6.0.1 CF1; 6.0.1; 6.0 All Platforms
I have a script that enables a user to copy messages from their mailbox to our CRM database. If the message has an attachment in the Body it allows the user to select which (if any) attachements will be copied along with the document.
I am having trouble deleting the attachement from the new doc. The LS (below) successfully removes the attachment from the body, but it still remains as an embedded object and shows up at the bottom of the new message. I am not sure what I am doing wrong.
If Isarray(attRemove) Then
Set rtitem = Newdoc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
Forall attName In attRemove
Set objAttchmnt = rtitem.GetEmbeddedObject( attName )