-
Topic
-
I’m working with some of the example scripts with Formativ 1.6 Developer. Specifically:
New Appointment
New Email
New Note
New Phone Message
and
New TaskThe two that use:
GroupWise.Account.Mailbox.Messages.Add (on line 16)
fail with:
Folder.Object
C:Program FilesAdvansysFormativLocalNew Email_Example.vbf
An unknown error occurred. at line 16, column 2The 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
GroupWise.Account.Mailbox fails.Any ideas?
Also, a second question: Assuming the “New Email_Example” worked, how would I add an attachment to the message being generated?
Thanks!
-Farren
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)
Dim objNote
Dim objNewNote
Dim objRecipient‘ 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)
With objNote
.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”
End WithSet objNewNote = objNote.Send
Call MsgBox (“Message Id : ” & objNewNote.MessageID, 64, “Formativ”)
Set objRecipient = Nothing
Set objNote = NothingEnd Sub
- You must be logged in to reply to this topic.