Examples: Name property (NotesAgent - LotusScript®)
This script gets the name of the current agent. For example, if this script is a part of the Token agent, the Name property returns "Token."
Dim session As New NotesSession
Dim agent As NotesAgent
Dim n As String
Set agent = session.CurrentAgent
n = agent.Name