I’m working with some of the example scripts with Formativ 1.6 Developer. Specifically:
New Phone Message
The two that use:
GroupWise.Account.Mailbox.Messages.Add (on line 16)
C:Program FilesAdvansysFormativLocalNew Email_Example.vbf
An unknown error occurred. at line 16, column 2
The rest of those examples use something other than “Mailbox”, such as “Calendar”, and they run just fine.
I’ve also copied and pasted other sample code from the help files, and anything that uses
Also, a second question: Assuming the “New Email_Example” worked, how would I add an attachment to the message being generated?
p.s.: Just for reference, here’s the entire app that’s not working:
‘ Create a New Note
‘ The following example creates a new note without any user interface.
‘ You would normally use this approach when you have all the information
‘ required to create a new item, and there is no need for user interaction.
Sub Main(Client, GWEvent)
‘ Create a draft note message with no user interface
Set objNote = GroupWise.Account.MailBox.Messages.Add(“GW.MESSAGE.NOTE”, fgwDraft)
‘ Add a single recipient – ourself
Set objRecipient = objNote.Recipients.Add(GroupWise.Account.Owner.EmailAddress,,0)
.OnCalendar = TRUE
.Priority = fgwNormal
.FromText = “Formativ”
.StartDate = Date
.Completed = FALSE
.NotifyWhenCompleted = fgwNoNotify
.NotifyWhenDeclined = fgwNoNotify
.Subject = “This note was created using Formativ”
.BodyText.PlainText = “This is the body text”
Set objNewNote = objNote.Send
Call MsgBox (“Message Id : ” & objNewNote.MessageID, 64, “Formativ”)
Set objRecipient = Nothing
Set objNote = Nothing
- You must be logged in to reply to this topic.