/ Forums / Advansys Formativ / Creating Solutions with Formativ / How can I move an attachment into a GW folder? / Reply To: How can I move an attachment into a GW folder?
May 12, 2007 at 11:35 am
#7839
Markus out in the Novell Object API Forum pointed out that I could clone the attachment as a new message, and move that to the folder I want. So I used the code you wrote, added a little bit, and it works. 🙂
' Move the attach message to a destination folder (WORKS) if (oAttachment.ObjType = 2) then msgbox oAttachment.message.messageid set oAttachmentClone = oAttachment.message.Clone call oSourceFolder.messages.move(oAttachmentClone.messageid, oDestinationFolder.messages) end if