Read-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 time the script runs.
To get:Set notesDocument = notesSession.SavedData
This property is valid only for agent scripts. In any other script, SavedData returns Nothing.
The SavedData document is created when you save an agent, and it is stored in the same database as the agent. The document replicates, but is not displayed in views.
Each time you edit and re-save an agent, its SavedData document is deleted and a new, blank one is created. When you delete an agent, its SavedData document is deleted.
SavedData property in Java AgentContext class
See examples