In GroupWise, I want to send a phone...
Articles and Tips: qna
01 Oct 2000
Q.
In GroupWise, I want to send a phone message but let the user edit it before it is sent. I need source code for Visual Basic. Here's my program as it is now:
Set groupwise = CreateObject("NovellGroupWareSession") Set Account = groupwise.Login Set Folder = Account.RootFolder Set Messages = Folder.Messages Set DraftMsg = Messages.Add("GW.MESSAGE.PHONE") Set Recips = DraftMsg.Recipients Set Recip = Recips.AddByDisplayName("My Name") DraftMsg.Subject = "Testnachricht" DraftMsg.BodyText = "Schaut doch schonmal gut aus, oder? Is auch mit VB gemacht." DraftMsg.CallerCompany = "Fa. Test" DraftMsg.CallerName = "Hr. Tester" DraftMsg.PhoneNumber = "02242913030" Set Commander = CreateObject("GroupWiseCommander") messid = DraftMsg.MessageID Commander.Execute ("ItemOpen(messid)") MsgBox ("gesendet") |
At the line Commander.Execute ("ItemOpen(messid)") I get the error message: "Wrong number of arguments or invalid property assignment." Is there a solution for this error?
A.
In the documentation, it states that you should get the message ID from the token ItemMessageIDFromView(). It also states that a message being created is always "XOO." Call this token, take the return value, and put it in ItemOpen. (Cecilia Milla, Novell Worldwide Developer Support)
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.