SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
Lotus Notes Mail Merge Tool Instructions for Installation and Use Eric Weinberg August 2010 **Special Thanks to Sacha Chua for writing the code and making Mail Merge in Lotus Notes possible!**
Lotus Notes Mail Merge Installation:  Create Agent Create Agent In order to create the agent, you need to have this presentation open (not a hard copy) so you can go into the notes view and copy and paste text.
Lotus Notes Mail Merge Installation:  Create Agent 1.  While in your mail view, click Create > Agent which will open the IBM Lotus Domino Designer and create a blank agent for you to work with.
Lotus Notes Mail Merge Installation:  Create Agent 2.  Choose and enter a Name for the agent, such as “Mail Merge” and then close this dialog box.
Lotus Notes Mail Merge Installation:  Create Agent 3.  Select (Declarations) on left, and enter this text on the right: %INCLUDE "lsconst.lss" 4.  Select Initialize on left, and enter the text that is included in the Notes to this chart on the line in between Sub Initialize and End Sub on right: 5.  Save your changes and close the domino designer. To see the notes, go to View > Page > Notes View After step 5, you have successfully created the Agent.
Lotus Notes Mail Merge Installation:  Run Agent Run Agent In order to run the agent, you need to have created a stationery (or a drafted note) and an excel file that is already set up with the data you want to merge. This part of the deck provides examples of both that are easily imitable.
Lotus Notes Mail Merge Installation:  Run Agent 6.  On the left side, scroll down to Tools > Stationery.  Select a pre-set stationery created specifically for the task at hand. **Stationery Example**
Lotus Notes Mail Merge Installation:  Run Agent 7.  At the top, click Actions > Mail Merge 8.  Select your sending option Select OK Choose your source file, and voila! **It's a good idea to select “Draft messages without sending,” test with a small, test spreadsheet, and check the results before sending messages out.**
Lotus Notes Mail Merge Application:  Excel Example This example on chart 5 would require an excel spreadsheet that looks like this to run correctly: In the stationery that you create, any text [inside square brackets] will be replaced by the values in your excel spreadsheet in those columns.  You can also use [to]; [cc]; [bcc]; and [subject].  One note will be generated per row in the excel spreadsheet until there is a blank line. **Required Excel Spreadsheet Example**
Lotus Notes Mail Merge Installation:  Additional Tips Backup: Additional (Advanced) Tips
Lotus Notes Mail Merge Application:  Additional Tips ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Chapter 1 drawing in auto cad 2010
Chapter 1   drawing in auto cad 2010Chapter 1   drawing in auto cad 2010
Chapter 1 drawing in auto cad 2010Shelly Wilke
 
Principles of carburetion
Principles of carburetionPrinciples of carburetion
Principles of carburetiongurprits2
 
Scavenging ,Detonation, ignition system, lubrication
Scavenging ,Detonation, ignition system, lubricationScavenging ,Detonation, ignition system, lubrication
Scavenging ,Detonation, ignition system, lubricationShowhanur Rahman
 
AutoCAD introduction
AutoCAD introductionAutoCAD introduction
AutoCAD introductionrfzah
 
What is section views
What is section viewsWhat is section views
What is section viewsKiran Chhetri
 
Aircraft propulsion matching and off design
Aircraft propulsion   matching and off designAircraft propulsion   matching and off design
Aircraft propulsion matching and off designAnurak Atthasit
 
Simply Supported Beam Examples | Mechanical Engineering
Simply Supported Beam Examples | Mechanical EngineeringSimply Supported Beam Examples | Mechanical Engineering
Simply Supported Beam Examples | Mechanical EngineeringTransweb Global Inc
 
Structural idealisation 1-2019
Structural idealisation 1-2019Structural idealisation 1-2019
Structural idealisation 1-2019Mahdi Damghani
 
AUTO CAD CIVIL ENGINEERING PPT REPORT
AUTO CAD CIVIL ENGINEERING PPT REPORTAUTO CAD CIVIL ENGINEERING PPT REPORT
AUTO CAD CIVIL ENGINEERING PPT REPORTDEEPAKKUMAR3980
 
Intro to AutoCAD
Intro to AutoCADIntro to AutoCAD
Intro to AutoCADDUSPviz
 
Moment of inertia of non symmetric object
Moment of inertia of non symmetric objectMoment of inertia of non symmetric object
Moment of inertia of non symmetric objectIntishar Rahman
 
Steam turbine in Geothermal Power Station
Steam turbine in Geothermal Power StationSteam turbine in Geothermal Power Station
Steam turbine in Geothermal Power StationS. Ady Candra
 
Chapter 3 linear wave theory and wave propagation
Chapter  3 linear wave theory and wave propagationChapter  3 linear wave theory and wave propagation
Chapter 3 linear wave theory and wave propagationMohsin Siddique
 
presentation based on Truss and Frame
presentation based on Truss and Framepresentation based on Truss and Frame
presentation based on Truss and FrameMohotasimur Anik
 
THERMODYNAMICS - UNIT - V
 THERMODYNAMICS - UNIT - V THERMODYNAMICS - UNIT - V
THERMODYNAMICS - UNIT - Vsureshkcet
 

Was ist angesagt? (20)

Chapter 1 drawing in auto cad 2010
Chapter 1   drawing in auto cad 2010Chapter 1   drawing in auto cad 2010
Chapter 1 drawing in auto cad 2010
 
Principles of carburetion
Principles of carburetionPrinciples of carburetion
Principles of carburetion
 
Scavenging ,Detonation, ignition system, lubrication
Scavenging ,Detonation, ignition system, lubricationScavenging ,Detonation, ignition system, lubrication
Scavenging ,Detonation, ignition system, lubrication
 
AutoCAD introduction
AutoCAD introductionAutoCAD introduction
AutoCAD introduction
 
What is section views
What is section viewsWhat is section views
What is section views
 
Enginnering Drawing
Enginnering DrawingEnginnering Drawing
Enginnering Drawing
 
Aircraft propulsion matching and off design
Aircraft propulsion   matching and off designAircraft propulsion   matching and off design
Aircraft propulsion matching and off design
 
Commands in AutoCAD
Commands in AutoCADCommands in AutoCAD
Commands in AutoCAD
 
Simply Supported Beam Examples | Mechanical Engineering
Simply Supported Beam Examples | Mechanical EngineeringSimply Supported Beam Examples | Mechanical Engineering
Simply Supported Beam Examples | Mechanical Engineering
 
Beams
BeamsBeams
Beams
 
Structural idealisation 1-2019
Structural idealisation 1-2019Structural idealisation 1-2019
Structural idealisation 1-2019
 
AUTO CAD CIVIL ENGINEERING PPT REPORT
AUTO CAD CIVIL ENGINEERING PPT REPORTAUTO CAD CIVIL ENGINEERING PPT REPORT
AUTO CAD CIVIL ENGINEERING PPT REPORT
 
Intro to AutoCAD
Intro to AutoCADIntro to AutoCAD
Intro to AutoCAD
 
Google sketch up
Google sketch upGoogle sketch up
Google sketch up
 
Moment of inertia of non symmetric object
Moment of inertia of non symmetric objectMoment of inertia of non symmetric object
Moment of inertia of non symmetric object
 
Steam turbine in Geothermal Power Station
Steam turbine in Geothermal Power StationSteam turbine in Geothermal Power Station
Steam turbine in Geothermal Power Station
 
Chapter 3 linear wave theory and wave propagation
Chapter  3 linear wave theory and wave propagationChapter  3 linear wave theory and wave propagation
Chapter 3 linear wave theory and wave propagation
 
presentation based on Truss and Frame
presentation based on Truss and Framepresentation based on Truss and Frame
presentation based on Truss and Frame
 
THERMODYNAMICS - UNIT - V
 THERMODYNAMICS - UNIT - V THERMODYNAMICS - UNIT - V
THERMODYNAMICS - UNIT - V
 
Fuel supply system in SI engines
Fuel supply system in SI enginesFuel supply system in SI engines
Fuel supply system in SI engines
 

Ähnlich wie Lotus notes mail merge create and run agent

What's new in lotus notes 8[1].5, 8.5.1, and 8.5
What's new in lotus notes 8[1].5, 8.5.1, and 8.5What's new in lotus notes 8[1].5, 8.5.1, and 8.5
What's new in lotus notes 8[1].5, 8.5.1, and 8.5svinoth
 
Mail Merge with Lotus Notes
Mail Merge with Lotus NotesMail Merge with Lotus Notes
Mail Merge with Lotus Notesdjakelic
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text TipsEMAINT
 
Mail Merge with Lotus Notes
Mail Merge with Lotus NotesMail Merge with Lotus Notes
Mail Merge with Lotus NotesSWING Software
 
Form4 cd4
Form4 cd4Form4 cd4
Form4 cd4smktsj2
 
ILL_Poster_Session
ILL_Poster_SessionILL_Poster_Session
ILL_Poster_SessionAndrew Huff
 
XLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & TricksXLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & TricksEarl Grau
 
XLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & TricksXLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & Tricksguest92a5de
 
Access tips access and sql part 6 dynamic reports
Access tips  access and sql part 6  dynamic reportsAccess tips  access and sql part 6  dynamic reports
Access tips access and sql part 6 dynamic reportsquest2900
 
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationLotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationJohn Head
 
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationLotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World Integrationakassabov
 
Gutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atlGutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atlGlenn Gutmacher
 
Autocad excel vba
Autocad excel vbaAutocad excel vba
Autocad excel vbarjg_vijay
 
Microsoft Outlook 2007
Microsoft Outlook 2007Microsoft Outlook 2007
Microsoft Outlook 2007fitzmorrisk
 
WritingSamplesCombined
WritingSamplesCombinedWritingSamplesCombined
WritingSamplesCombinedJanet Henjum
 

Ähnlich wie Lotus notes mail merge create and run agent (20)

What's new in lotus notes 8[1].5, 8.5.1, and 8.5
What's new in lotus notes 8[1].5, 8.5.1, and 8.5What's new in lotus notes 8[1].5, 8.5.1, and 8.5
What's new in lotus notes 8[1].5, 8.5.1, and 8.5
 
Notacd04
Notacd04Notacd04
Notacd04
 
Notacd04
Notacd04Notacd04
Notacd04
 
Mail Merge with Lotus Notes
Mail Merge with Lotus NotesMail Merge with Lotus Notes
Mail Merge with Lotus Notes
 
Libre Office Writer Lesson 5: Mail Merge
Libre Office Writer Lesson 5: Mail MergeLibre Office Writer Lesson 5: Mail Merge
Libre Office Writer Lesson 5: Mail Merge
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text Tips
 
Mail Merge with Lotus Notes
Mail Merge with Lotus NotesMail Merge with Lotus Notes
Mail Merge with Lotus Notes
 
Form4 cd4
Form4 cd4Form4 cd4
Form4 cd4
 
ILL_Poster_Session
ILL_Poster_SessionILL_Poster_Session
ILL_Poster_Session
 
XLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & TricksXLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & Tricks
 
XLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & TricksXLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & Tricks
 
Access tips access and sql part 6 dynamic reports
Access tips  access and sql part 6  dynamic reportsAccess tips  access and sql part 6  dynamic reports
Access tips access and sql part 6 dynamic reports
 
Tugas testing
Tugas testingTugas testing
Tugas testing
 
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationLotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
 
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationLotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
 
Gutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atlGutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atl
 
Autocad excel vba
Autocad excel vbaAutocad excel vba
Autocad excel vba
 
Microsoft Outlook 2007
Microsoft Outlook 2007Microsoft Outlook 2007
Microsoft Outlook 2007
 
WritingSamplesCombined
WritingSamplesCombinedWritingSamplesCombined
WritingSamplesCombined
 
Excel vba
Excel vbaExcel vba
Excel vba
 

Lotus notes mail merge create and run agent

  • 1. Lotus Notes Mail Merge Tool Instructions for Installation and Use Eric Weinberg August 2010 **Special Thanks to Sacha Chua for writing the code and making Mail Merge in Lotus Notes possible!**
  • 2. Lotus Notes Mail Merge Installation: Create Agent Create Agent In order to create the agent, you need to have this presentation open (not a hard copy) so you can go into the notes view and copy and paste text.
  • 3. Lotus Notes Mail Merge Installation: Create Agent 1. While in your mail view, click Create > Agent which will open the IBM Lotus Domino Designer and create a blank agent for you to work with.
  • 4. Lotus Notes Mail Merge Installation: Create Agent 2. Choose and enter a Name for the agent, such as “Mail Merge” and then close this dialog box.
  • 5. Lotus Notes Mail Merge Installation: Create Agent 3. Select (Declarations) on left, and enter this text on the right: %INCLUDE "lsconst.lss" 4. Select Initialize on left, and enter the text that is included in the Notes to this chart on the line in between Sub Initialize and End Sub on right: 5. Save your changes and close the domino designer. To see the notes, go to View > Page > Notes View After step 5, you have successfully created the Agent.
  • 6. Lotus Notes Mail Merge Installation: Run Agent Run Agent In order to run the agent, you need to have created a stationery (or a drafted note) and an excel file that is already set up with the data you want to merge. This part of the deck provides examples of both that are easily imitable.
  • 7. Lotus Notes Mail Merge Installation: Run Agent 6. On the left side, scroll down to Tools > Stationery. Select a pre-set stationery created specifically for the task at hand. **Stationery Example**
  • 8. Lotus Notes Mail Merge Installation: Run Agent 7. At the top, click Actions > Mail Merge 8. Select your sending option Select OK Choose your source file, and voila! **It's a good idea to select “Draft messages without sending,” test with a small, test spreadsheet, and check the results before sending messages out.**
  • 9. Lotus Notes Mail Merge Application: Excel Example This example on chart 5 would require an excel spreadsheet that looks like this to run correctly: In the stationery that you create, any text [inside square brackets] will be replaced by the values in your excel spreadsheet in those columns. You can also use [to]; [cc]; [bcc]; and [subject]. One note will be generated per row in the excel spreadsheet until there is a blank line. **Required Excel Spreadsheet Example**
  • 10. Lotus Notes Mail Merge Installation: Additional Tips Backup: Additional (Advanced) Tips
  • 11.

Hinweis der Redaktion

  1. 'Mail merge script by Sacha Chua (sacha@sachachua.com) Dim ws As NotesUIWorkspace Set ws = New NotesUIWorkspace Dim sendTypes(1) As String Dim sendValue As String Dim errorCount As Integer errorCount = 0 sendTypes(0) = "Draft messages without sending" sendTypes(1) = "Send messages" sendValue = ws.Prompt(PROMPT_OKCANCELLIST, "Sending options", "What would you like to do?", "", sendTypes) If (sendValue = "") Then Exit Sub End If Dim fileName As String Dim strXLFilename As String 'Prompt for the filename - should be a Microsoft Excel file with columns, where the first row of each column 'is a token that will be used when replacing text in the body of the message 'Special tokens: [to], [cc], [subject] set the appropriate fields 'Make sure the first column does not have any blank cells fileName$ = ws.Prompt(12, "Select file", "3") If fileName$ = "" Then Exit Sub 'Cancel was pressed End If strXLFilename = fileName$ Dim s As New NotesSession Dim uidoc As NotesUIDocument Dim partno As String Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Dim collection As NotesDocumentCollection Dim memo As NotesDocument Dim body As NotesRichTextItem Dim newBody As NotesRichTextItem Dim range As NotesRichTextRange Dim count As Integer Set db = s.CurrentDatabase Set collection = db.UnprocessedDocuments Set memo = collection.getFirstDocument() Dim varXLFile As Variant 'Get data from the spreadsheet Set varXLFile = CreateObject("Excel.Application") varXLFile.Visible = False Dim varXLWorkbook As Variant Set varXLWorkbook = Nothing varXLFile.Workbooks.Open strXLFilename Set varXLWorkbook = varXLFile.ActiveWorkbook Dim varXLSheet As Variant Set varXLSheet = varXLWorkbook.ActiveSheet Dim lngRow As Integer Dim columnNo As Integer Dim token As String Dim value As String lngRow = 2 Dim maildoc As NotesDocument While (Not (varXLSheet.Cells(lngRow, 1).Value = "")) 'Fill in the template Dim subject As String subject = memo.Subject(0) Set body = memo.GetFirstItem("Body") 'Compose message Set maildoc = New NotesDocument(db) Set maildoc= db.CreateDocument() maildoc.Form = "Memo" maildoc.Subject = subject Set newBody = maildoc.CreateRichTextItem("Body") Call newBody.appendRTItem(body) Set range = newBody.CreateRange 'Count the number of fields 'Look up tokens from the column headings and replace them columnNo = 1 While Not(varXLSheet.Cells(1, columnNo).Value = "") token = varXLSheet.Cells(1, columnNo).Value value = varXLSheet.Cells(lngRow, columnNo).Value count = range.FindAndReplace(token, value, 16) If (token = "[to]") Then maildoc.SendTo = value End If If (token = "[cc]") Then maildoc.CopyTo = Split(value, ",") End If If (token = "[subject]") Then maildoc.Subject = value End If columnNo = columnNo + 1 Wend On Error Goto save If (sendValue = sendTypes(0)) Then Call maildoc.Save(True, False) Else maildoc.SaveMessageOnSend = True maildoc.PostedDate = Now() Call maildoc.Send(False) Call maildoc.Save(True, True) End If Goto nextrow save: Messagebox("Error processing " + maildoc.sendTo) errorCount = errorCount + 1 Resume Next nextrow: lngRow = lngRow + 1 Wend If (sendValue = sendTypes(0)) Then Msgbox "Drafted " & (lngRow - errorCount - 2) & " message(s). Errors: " & errorCount Else Msgbox "Sent " & (lngRow - errorCount - 2) & " message(s). Errors: " & errorCount End If Call varXLFile.Quit