SentByAgent (NotesDocument - LotusScript®)

Read-only. Indicates whether a document was mailed by a script.

Defined in

NotesDocument

Data type

Boolean

Syntax

To get: flag = notesDocument .SentByAgent

Legal values

  • True indicates that the document was mailed by a script.
  • False indicates that the document was mailed by a person.

Usage

In agents that respond to mail messages, you can use this property to make sure that the agent is not responding to mail that was sent by another agent (or other script).

This property returns True if the document was mailed by any script, not just an agent script.

Documents sent by a script contain an item called $AssistMail whose value is set to 1. When a script uses the Send method to mail a document, the method automatically creates this item on the document.

Example