/ Forums / Advansys Formativ / Creating Solutions with Formativ / Identifying Outgoing Messages / Reply To: Identifying Outgoing Messages
February 29, 2012 at 6:32 pm
#8267
Hi Mickey,
Every message in the GroupWise message store is allocated a unique ID that never changes during the life of the message. Items that have not been saved , and therefore have not yet been allocated an ID, can be accessed using the special ID “X00”.
A workaround might be to check for a composing message (ID=”X00″) before checking BoxType. Alternatively, it may be worth saving as a draft and then using the ObjectAPI to access the BoxType using Message.BoxType.
Here is some code from our applet source library, which checks the ID and boxtype.
if (GroupWise.ItemMessageIDFromView <> "X00") then Set oMsg = Client.ClientState.CommandMessage if ((oMsg.boxtype = fgwIncoming) or (oMsg.boxtype = fgwOutgoing)) then msgbox "Incoming or outgoing message" set oMsg = nothing exit sub end if end if msgbox "Draft message..."
Hope this helps.
Kind Regards,
Advansys Support