You are on page 1of 3

NotesSession Class

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. Dim variableName As New NotesSession OR Set notesSession = New NotesSession

Properties:
AddressBooks: The Domino Directories and Personal Address Books, including directory catalogs, known to the current session. CommonUserName : The common name portion of the current user's name. ConvertMime CurrentAgent: The agent that's currently running. CurrentDatabase: The database in which the current script resides. This database may or may not be open. DocumentContext: The in-memory document when an agent starts EffectiveUserName HttpURL: The Domino URL of a session when HTTP protocols are in effect. International IsOnServer LastExitStatus LastRun NotesBuildVersion NotesURL : The Domino URL of a session when Notes protocols are in effect. NotesVersion: The release of Notes in which the current script is running OrgDirectoryPath Platform SavedData ServerName: The full name of the server that the session is running on URLDatabase: A database object representing the default Web Navigator database. UserGroupNameList: The groups to which the current user belongs. UserName: The current user's name. a. b. For a script running on a workstation, this is the name of the current user. For a script running on a server, this is the name of the server.

UserNameList: The name of the user or server that created the session, and the alternate name if it exists.

UserNameObject:

Methods:
CreateAdministrationProcess: Creates a new NotesAdministrationProcess object. CreateColorObject: Creates a new NotesColorObject object. CreateDateRange: Creates a new NotesDateRange object. CreateDateTime: Given a string that represents the date and time you want, creates a new NotesDateTime object that represents that date and time. When used with OLE automation, this method allows you to create a NotesDateTime object without using New. CreateDOMParser CreateDxlExporter CreateDxlImporter CreateLog: Creates a new NotesLog object with the name you specify. When used with OLE automation, this method allows you to create a NotesLog object without using New CreateName: Creates a new NotesName object. When used with OLE automation, this method allows you to create a NotesName object without using the New method of NotesName. CreateNewsletter: Given a NotesDocumentCollection containing the documents you want, creates a new NotesNewsletter. When used with OLE automation, this method allows you to create a NotesNewsletter object without using New. CreateRegistration: Creates a new NotesRegistration object. CreateRichTextParagraphStyle CreateRichTextStyle CreateSAXParser CreateStream: Creates a NotesStream object. CreateTimer: Creates a NotesTimer object. CreateXSLTransformer Evaluate: Evaluates a Domino formula.

Syntax
variant = notesSession.Evaluate( formula$, doc ) FreeTimeSearch GetDatabase: Creates a NotesDatabase object that represents the database located at the server and file name you specify, and opens the database, if possible. GetDbDirectory: Creates a new NotesDbDirectory object using the name of the server you want to access. When used with OLE automation, this method allows you to create a NotesDbDirectory object without using New. GetEnvironmentString: Given the name of a string environment variable, retrieves its value. GetEnvironmentValue: Given the name of a numeric environment variable, retrieves its value. GetUserPolicySettings HashPassword

Initialize InitializeUsingNotesUserName New Resolve SendConsoleCommand SetEnvironmentVar: Sets the value of a string or numeric environment variable. UpdateProcessedDoc: Marks a document as processed by an agent. VerifyPassword: Verifies a plain string value against a hashed value.

You might also like