/ Forums / Advansys Formativ / Creating Solutions with Formativ / Move an Item to a diffent folder using the MessageID / Reply To: Move an Item to a diffent folder using the MessageID
March 29, 2006 at 2:52 pm
#7556
Seems like the Messages.Remove() method do not work if you use the Move method. Interesting to see, the Move method create a link for the Sent items messages. May be the index of the messages collection not refresh once the Move method called. You can use the Message.Delete() method to remove the message. See the sample code below:
set oMsg = client.clientstate.commandmessage call groupwise.account.SentItems.messages.move(oMsg.messageid, groupwise.account.cabinet.messages) oMsg.delete set oMsg = nothing
Regards,
Advansys Support