Wednesday, May 20, 2009

Lotus Notes Scripting

I have recently been looking into automatisation of different kinds, and in the scope of that I looked into scripting for Lotus Notes. There is of course LotusScript and Lotus Domino Designer. But since I'm already using Visual Basic Script quite a lot, I was happy to find out that there is a way to script Lotus Notes using VB Script. I have been using VB Script to interface with Excel, and this works in much the same way.

These two rows are the really important ones:
Set objNotes = CreateObject("Lotus.NotesSession")
Call objNotes.Initialize

When the object is created it can be used in a lot of ways, for example:

If you don't want to enter your notes password every time the application is run, use this addition:
Call objNotes.Initialize("password")

Here is a very good list of Lotus Script COM/OLE classes:
LotusScript Classes A-Z

No comments: