Skip to main content

NotesSession

Properties

NameDescription
AddressBooksRead-only. The Domino® Directories and Personal Address Books, including directory catalogs, known to the current session.
CommonUserNameRead-only. The common name portion of the current user's name.
ConvertMIMERead-write. Indicates whether items of type MIME_PART are converted to rich text upon NotesDocument instantiation.
CurrentAgentRead-only. The agent that's currently running.
CurrentDatabase (NotesSession)Read-only. The database in which the current script resides. This database may or may not be open.
DocumentContextRead-only. The in-memory document when an agent starts.
EffectiveUserNameRead-only. The user name that is in effect for the current program.
GetPropertyBrokerRetrieves the property broker for this session.
HttpURL (NotesSession)Read-only. The Domino® URL of a session when HTTP protocols are in effect.
InternationalRead-only. The international (regional) settings for your operating environment.
IsOnServerRead-only. Indicates whether a script is running on a server.
LastExitStatusRead-only. The exit status code returned by the Agent Manager the last time the current agent ran.
LastRun (NotesSession)Read-only. The date when the current agent was last executed.
NotesBuildVersionRead-only. The Notes® build version in which a selected document resides.
NotesURL (NotesSession)Read-only. The Domino® URL of a session when Notes® protocols are in effect.
NotesVersionRead-only. The release of Notes® in which the current script is running.
OrgDirectoryPathRead-only. The default directory of the current user in a hosted organization.
PlatformRead-only. The name of the platform on which the session is running.
SavedDataRead-only. A document that an agent script uses to store information in between invocations. The script can use the information in this document the next…
ServerName (NotesSession)Read-only. The full name of the server that the session is running on.
URLDatabaseRead-only. A database object representing the default Web Navigator database.
UserGroupNameListRead-only. The groups to which the current user belongs.
UserNameRead-only. The current user's name.
UserNameListRead-only. The name of the user or server that created the session, and the alternate name if it exists.
UserNameObjectRead-only. The name, in the form of a NotesName object, of the user or server that created the session.

Methods

NameDescription
CreateAdministrationProcessCreates a new NotesAdministrationProcess object.
CreateColorObjectCreates a new NotesColorObject object.
CreateDateRangeCreates a new NotesDateRange object.
CreateDateTimeGiven 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…
CreateDOMParserCreates a NotesDOMParser object.
CreateDXLExporterCreates a NotesDXLExporter object.
CreateDXLImporterCreates a NotesDXLImporter object.
CreateLogCreates 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…
CreateNameCreates a new NotesName object. When used with OLE automation, this method allows you to create a NotesName object without using the New method of…
CreateNewsletterGiven a NotesDocumentCollection containing the documents you want, creates a new NotesNewsletter. When used with OLE automation, this method allows you…
CreateRegistrationCreates a new NotesRegistration object.
CreateRichTextParagraphStyleCreates a new NotesRichTextParagraphStyle object.
CreateRichTextStyleCreates a NotesRichTextStyle object.
CreateSAXParserCreates a NotesSAXParser object.
CreateStreamCreates a NotesStream object.
CreateTimerCreates a NotesTimer object.
CreateXSLTransformerCreates a NotesXSLTransformer object.
EvaluateEvaluates a Domino® formula.
FileOpBeginExports a file from the browser virtual file system to the host machine filesystem, or prepares a file system mapping for a new file.
FileOpEndCompletes a file operation started by FileOpBegin. The host machine file is copied back into the browser virtual file system at the location specified in…
FreeResourceSearchSearches for free resource slots for calendaring and scheduling.
FreeTimeSearchSearches for free time slots for calendaring and scheduling.
GetCalendarCreates a new NotesCalendar object.
GetDatabaseCreates a NotesDatabase object that represents the database located at the server and file name you specify, and opens the database, if possible.
GetDbDirectoryCreates 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…
GetDirectoryCreates a new NotesDirectory object using the name of the server you want to access.
GetEnvironmentStringGiven the name of a string environment variable, retrieves its value.
GetEnvironmentValueGiven the name of a numeric environment variable, retrieves its value.
GetOIDCAccessTokenIt is used to acquire an access token from a Domino OIDC Provider for the current user as identified and authenticated by their ID file.
GetUserPolicySettingsGets a policy document.
HashPasswordHashes a string value so that it is not recognizable.
InitializeInitializes a COM session with the current user ID.
InitializeUsingNotesUserNameInitializes a COM session with a specified user name.
ResetUserPassword (NotesSession)Use an agent to change the password of a user ID stored in the ID vault and/or specify the number of times a user ID can be downloaded from the vault…
ResolveReturns the Domino® object that a URL addresses.
SendConsoleCommandSends a console command to a Domino® server.
SetEnvironmentVarSets the value of a string or numeric environment variable.
UpdateProcessedDocMarks a document as processed by an agent.
UseDoubleAsPointerAllows you to use a Double to handle a 64-bit pointer argument for a C API call.
VerifyPasswordVerifies a plain string value against a hashed value.

Examples

NameDescription
Examples: CurrentDatabase property (NotesSession)1. This script gets the current database. For example, if this script runs in the database PROJECTS.NSF on server Damascus, then the db object represents…
Examples: DocumentContext property1. This agent displays the Subject item of the current document when run from a view in the Notes client.
Examples: EffectiveUserName propertyThis script gets the current effective user name.
Examples: GetCalendar methodThis agent gets calendar and scheduling information for the current user for today and tomorrow.
Examples: IsOnServer propertyThis function takes a person's last name, looks the name up in the People view of an Address Book, and returns the person's office phone number as a…
Examples: LastExitStatus propertyThis agent script checks the last exit status of the current agent and prints a message in the status bar.
Examples: LastRun property (NotesSession)1. This agent script gets the date that the agent was last run, and puts it into runDate. For example, if the agent last ran on August 15, 1996, at…
Examples: NotesVersion propertyThis form action script gets the release of Notes® currently running and puts it in the variable version. For example, if the script runs on a…
Examples: OrgDirectoryPath propertyThis agent prepends the organization directory, if any, to a file name.
Examples: ServerName property (NotesSession)This Visual Basic code displays the server name or an exception message if it is running on a client.
Examples: UserNameObject propertyThis Visual Basic code displays the current user's common name.

Reference

NameDescription
AdjustPointerStarting with 14.5.0, there is a 64-bit API that increments or decrements pointer by specified offset.