Reading scripts from within the agent

Hi,

I have over 2K databases and wants the script written in the agents of the databases.
Is there a way to code wherein I can read the scripts line by line written inside the agents and copy paste them somewhere may be to a text file ? Or is there any better way to get the scripts of the agents ?

Thanks,

Megha

Subject: Try using NotesDXLExporter

Hi,

My suggestion is to use the NotesDXLExporter class to obtain agent information such as the scripts and any other information you may need. Steps to do this would be:

  • Use the NotesNoteCollection class to get a handle to the collection of agents in a database.
  • For each agent note id returned get a handle to the corresponding backend note (document).
  • Pass the note through the NotesDXLExporter class and pass the ‘Export’ method through a NotesDOMParser function.
  • In your NotesDOMParser function you can iterate the DXL (XML) content of the agent and retrieve whatever you need from the agent.

Alex