NotesAgent (LotusScript®)

Represents an agent. The agent may be shared or private, and may be a Release 3 macro.

Containment

Contained by: NotesSession and NotesDatabase

Properties

Comment

CommonOwner

HasRunSinceModified

HttpURL

IsActivatable

IsEnabled

IsNotesAgent

IsPublic

IsWebAgent

LastRun

LockHolders

Name

NotesURL

OnBehalfOf

Owner

ParameterDocID

Parent

ProhibitDesignUpdate

Query

ServerName

Target

Trigger

Methods

GetPerformanceDocument

Lock

LockProvisional

Remove

Run

RunOnServer

Save

UnLock

Access

There are three ways to access an agent.

  • To access an agent in a database using the agent name, use the GetAgent method in NotesDatabase.
  • To access the agent that's currently running, use the CurrentAgent property in NotesSession.
  • To access all the agents in a database, use the Agents property in NotesDatabase.

Usage

The Print statement writes to an Events document ("Miscellaneous Events" view) in the LOG.NSF database where the code executes for:

Example