Windows Vista Forums

Lotus domino Object Library
  1. #1



    Member
    Join Date : Jul 2006
    Posts : 23
    Local Time: 04:52 AM

    Lotus domino Object Library

    How would I connect to the Domino Object library, equivalent to VBA's Tools/References/Lotus Domino Objects?


      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: Lotus domino Object Library

    sluice wrote:

    > How would I connect to the Domino Object library, equivalent to VBA's
    > Tools/References/Lotus Domino Objects?
    >
    >
    From this:
    http://www.ibm.com/developerworks/lo...ls-COM_Access/

    I would infer:
    $notes=new-object -comobject Lotus.NotesSession

    Now, $notes would be the object to work with.

    --
    Microsoft MVP - Windows PowerShell
    http://www.microsoft.com/mvp

    PowerGadgets MVP
    http://www.powergadgets.com/mvp

    Blog:
    http://marcoshaw.blogspot.com

      My System SpecsSystem Spec

  3. #3


    Hal Rottenberg Guest

    Re: Lotus domino Object Library

    Marco Shaw [MVP] wrote:

    > I would infer:
    > $notes=new-object -comobject Lotus.NotesSession
    I can confirm this works, not that I can figure out what to do with the
    resulting object.

    --

    Hal Rottenberg
    Blog: http://halr9000.com
    Webmaster, Psi (http://psi-im.org)
    Co-host, PowerScripting Podcast (http://powerscripting.net)

      My System SpecsSystem Spec

  4. #4



    Member
    Join Date : Jul 2006
    Posts : 23
    Local Time: 04:52 AM


      Thread Starter

    Re: Lotus domino Object Library

    The next thing to do would be
    $notes.initialize("password") #This would open a session

    Next is define the path to your .nsf file and open that, then it gets more complicated. I'm working on it.

      My System SpecsSystem Spec

  5. #5


    Hal Rottenberg Guest

    Re: Lotus domino Object Library

    sluice wrote:

    > The next thing to do would be
    > $notes.initialize("password") #This would open a session
    >
    > Next is define the path to your .nsf file and open that, then it gets
    > more complicated. I'm working on it.
    Let us know how it goes, I'm interested in your results if nobody else is.

    --

    Hal Rottenberg
    Blog: http://halr9000.com
    Webmaster, Psi (http://psi-im.org)
    Co-host, PowerScripting Podcast (http://powerscripting.net)

      My System SpecsSystem Spec

  6. #6



    Member
    Join Date : Jul 2006
    Posts : 23
    Local Time: 04:52 AM


      Thread Starter

    Re: Lotus domino Object Library

    Quote Originally Posted by Hal Rottenberg View Post
    sluice wrote:

    > The next thing to do would be
    > $notes.initialize("password") #This would open a session
    >
    > Next is define the path to your .nsf file and open that, then it gets
    > more complicated. I'm working on it.
    Let us know how it goes, I'm interested in your results if nobody else is.

    --

    Hal Rottenberg
    Blog: http://halr9000.com
    Webmaster, Psi (Psi - Home)
    Co-host, PowerScripting Podcast (PowerScripting Podcast)
    I'm still struggling with it, and have got as far as:
    $notes=new-object -comobject Lotus.NotesSession
    $notes.Initialize("password")
    $ssgtech=$notes.GetDatabase("server","ssgtech.nsf")
    $ssgtech.open(??)

    I'm stuck on how to get it to open the database.
    $ssgtech.open gives me:
    PS C:\Documents and Settings\Simon Lucas> $ssgtech.Open


    MemberType : Method
    OverloadDefinitions : {void Open ()}
    TypeNameOfValue : System.Management.Automation.PSMethod
    Value : void Open ()
    Name : Open
    IsInstance : True

    but in my general state of ignorance, I don't know what the parameters should be to open the database.

      My System SpecsSystem Spec

  7. #7



    Member
    Join Date : Jul 2006
    Posts : 23
    Local Time: 04:52 AM


      Thread Starter

    Re: Lotus domino Object Library

    I have found that the way to open the database should be:
    $ssgtech=$notes.GetDatabase("server","ssgtech.nsf",1)
    $mydoc=$ssgtech.GetDocumentByID(""S1003090")

    I think!

      My System SpecsSystem Spec

  8. #8


    Marco Shaw [MVP] Guest

    Re: Lotus domino Object Library


    > PS C:\Documents and Settings\Simon Lucas> $ssgtech.Open
    >
    >
    > MemberType : Method
    > OverloadDefinitions : {void Open ()}
    > TypeNameOfValue : System.Management.Automation.PSMethod
    > Value : void Open ()
    > Name : Open
    > IsInstance : True
    >
    > but in my general state of ignorance, I don't know what the parameters
    > should be to open the database.
    Try calling open like this: "open()".

      My System SpecsSystem Spec

  9. #9



    Member
    Join Date : Jul 2006
    Posts : 23
    Local Time: 04:52 AM


      Thread Starter

    Re: Lotus domino Object Library

    I tried it but it failed. Unfortunately my great idea in post 7 also failed. I tried
    $ssgtech.isopen|write-host
    which returned False.

    PS C:\Documents and Settings\> $ssgtech.open()
    Exception calling "Open" with "0" argument(s): "Database open failed (server!!ssgtech.nsf)"
    At line:1 char:14
    + $ssgtech.open( <<<< )
    PS C:\Documents and Settings\> $mydoc=$ssgtech.GetDocumentByID("S1003090")
    Exception calling "GetDocumentByID" with "1" argument(s): "Database server!!ssgtech.nsf has not been opened yet"
    At line:1 char:32
    + $mydoc=$ssgtech.GetDocumentByID( <<<< "S1003090")

      My System SpecsSystem Spec

Lotus domino Object Library problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send a mail through a lotus domino server using powershell Pako Nukem PowerShell 0 23 Jan 2009
acquiring machine name from inside an object library jason .NET General 2 13 Nov 2008
Any known fixes for problems using email with Lotus Domino Web Acc Dimitris Vista General 2 27 Jun 2008
Microsoft Speech Object Library compiler warnings Kevin S Gallagher .NET General 0 21 May 2008
Software products in Windows Vista won't open Lotus Domino Web Acc michboyd1 Vista installation & setup 1 22 Apr 2008