Sign in to follow this  
Followers 0
alank17

Modify Lotus Notes names.nsf

6 posts in this topic

Dear all,

$oSession = ObjCreate("Notes.NotesSession")

 

This line only works on the machine which has Domino Administrator installed, otherwise it will get the following error message:

Error: Variable must be of type "Object"

 

Are there any way to run this line on the machine without Domino Administrator? Thanks!!

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

Thanks for helping.

Sorry I'm not sure the exactly troubleshooting steps to test....could you please detail the method?

This is part of my code:

 

    ;Set Lotus Notes Function
        $Session = ObjCreate("Notes.NotesSession")

    ;Signature
        ;Set signature DB
            $Sig_db = $Session.CurrentDatabase
            $SigProfiledoc = $Sig_db.getProfiledocument("CalendarProfile")
        ;Modify signature value
            $SigOpt = $SigProfiledoc.GetFirstItem("SignatureOption" ).Text
            If $SigOpt = "2" Then ;If user setting is HTML
                $SigValue = $SigProfiledoc.GetFirstItem("Signature_2" ).Text
                If $SigFile[2] = "Lotus" Then ;If Signature path is old
                    $SigProfiledoc.ReplaceItemValue("Signature_2" , "xxxxxxxx" ).Text
                    $SigProfiledoc.Save(True,False)
                EndIf
            EndIf

Edited by alank17

Share this post


Link to post
Share on other sites

I've done a few things with Autoit and LN, and you definitely don't need Domino Administrator, I run everything I've created against a normal Notes Client (we are at version 8.5)

This example runs, and the obj is created

$Session = ObjCreate("Notes.NotesSession")
        If IsObj($Session) Then
            MsgBox(0, "", "is obj")
        Else
            MsgBox(0, "", "is not obj")
        EndIf

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Hi all,

I've found the reason why I get error message.

Lotus Notes have to be opened if I try to modify names.nsf, and Mailbox have to be opened if I try to modify signature value.

Thanks for everyone who's trying to help! Thanks!

Edited by alank17

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0