IsSentByAgent (NotesDocument - JavaScript™)
Read-only. Indicates whether a document was mailed by a Domino® program.
Defined in
NotesDocumentSyntax
isSentByAgent() : boolean
Legal value | Description |
---|---|
true |
if the document was mailed by a program |
false |
if 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 a program.Documents sent by a program
contain an item called $AssistMail
with a value that
is set to 1.
Examples
This computed field displays whether the current document was sent by a program or a person.var doc:NotesDocument = currentDocument.getDocument();
if (doc == null) {
return;
}
if (doc.isSentByAgent()) {
return "This document was sent by an agent"
}