asked on
ASKER
ASKER
Sub Click(Source As Button)
Dim s As New NotesSession
Dim w As New NotesUIWorkspace
Dim db As NotesDatabase
Dim v As NotesView
Dim c As NotesDocumentCollection
Dim nl As NotesNewsletter
Dim doc As NotesDocument
Dim newDoc As NotesDocument
Dim key As String
Dim j As Integer
Set db = s.CurrentDatabase
Set doc = w.CurrentDocument.Document
key = doc.office_number(0) 'get the name of office (view category) from the current document
Set v = db.GetView( "newsletter" ) 'maybe you'll have to create the view that is categorized by office
Set c = v.GetAllDocumentsByKey( key, True )
Set nl = New NotesNewsletter( c )
For j = 1 To c.Count
Set newDoc = nl.FormatMsgWithDoclinks( db )
Call newDoc.Save( True, True )
Call newDoc.Send( True, "Field Technology" )
Next
End Sub
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
Sub Click(Source As Button)
Dim s As New NotesSession
Dim w As New NotesUIWorkspace
Dim db As NotesDatabase
Dim v As NotesView
Dim c As NotesDocumentCollection
Dim nl As NotesNewsletter
Dim doc As NotesDocument
Dim newDoc As NotesDocument
Dim key As String
Dim j As Integer
Dim subject_line As String
Set db = s.CurrentDatabase
Set doc = w.CurrentDocument.Document
key = doc.office_number(0) 'get the name of office (view category) from the current document
Set v = db.GetView( "newsletter" ) 'maybe you'll have to create the view that is categorized by office
Set c = v.GetAllDocumentsByKey( key, True )
Set nl = New NotesNewsletter( c )
nl.DoSubject = True
nl.SubjectItemName = doc.subject_line
Set newDoc = nl.formatMsgWithDoclinks( db )
newDoc.Form = "Memo"
newDoc.Subject = "Subject Line"
Call newDoc.Save( True, True )
Call newDoc.Send( True, "Field Technology" )
End Sub
ASKER
ASKER
ASKER
ASKER
Lotus Software produced the Lotus 1-2-3 spreadsheet program, and later developed Lotus Notes, a groupware and email system. Following its acquisition by IBM, the Notes and Domino client/server collaborative platform were expanded to include functions such as email, calendars, to-do lists, contacts management, teamrooms, discussion forums, file sharing, microblogging, instant messaging, blogs, and user directories. IBM also release SmartSuite, a comprehensive office suite, and followed that with Symphony, unrelated to the Lotus suite of the same name.
TRUSTED BY
Then do something like this:
(I wrote "from my head", haven't tested it, so post if you get stuck...)
Open in new window