NotesSession (LotusScript®)

Represents the environment of the current script, providing access to environment variables, Address Books, information about the current user, and information about the current Notes® platform and release number.

Properties

AddressBooks

CommonUserName

ConvertMime

CurrentAgent

CurrentDatabase

DocumentContext

EffectiveUserName

HttpURL

International

IsOnServer

LastExitStatus

LastRun

NotesBuildVersion

NotesURL

NotesVersion

OrgDirectoryPath

Platform

SavedData

ServerName

URLDatabase

UserGroupNameList

UserName

UserNameList

UserNameObject

Methods

CreateAdministrationProcess

CreateColorObject

CreateDateRange

CreateDateTime

CreateDOMParser

CreateDxlExporter

CreateDxlImporter

CreateLog

CreateName

CreateNewsletter

CreateRegistration

CreateRichTextParagraphStyle

CreateRichTextStyle

CreateSAXParser

CreateStream

CreateTimer

CreateXSLTransformer

Evaluate

FreeResourceSearch

FreeTimeSearch

GetDatabase

GetCalendar

GetDbDirectory

GetDirectory

GetEnvironmentString

GetEnvironmentValue

GetPropertyBroker

GetUserPolicySettings

HashPassword

Initialize

InitializeUsingNotesUserName

ResetUserPassword

Resolve

SendConsoleCommand

SetEnvironmentVar

UpdateProcessedDoc

UseDoubleAsPointer (NotesSession - LotusScript )

VerifyPassword

Creation and access

To access the current session, use New.

Syntax

Dim variableName As New NotesSession

OR

Set notesSession = New NotesSession

To access the current session from a NotesDatabase object, use the Parent property in NotesDatabase.

To access the current session through COM, see "Creating a session object" and "Initializing a session."Examples

To access the current session through OLE, see "Using OLE."

Usage

Since there can only be one session per script, the New method always returns the same object each time you call it.

Do not delete session objects.

Example