I am trying to write a quick app that will move a message to a selected folder after it has been sent, using onSend event
I cannot figure out how to access the message that has just been sent.

Client.clientstate.commandmessage returns the message that was selected before "New Mail" was pressed. (eg in the mailbox)

I have tried just getting the last item in the sent items folder,

set sentItems = Groupwise.Account.SentItems
set sentMsg = sentItems.messages.Item(sentItems.messages.Count)

but it will return any sent future appointments instead.

is there an easy way to get the message object for the last sent item.