This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Feb 3, 2015, 8:59 AM
1 Posts

Reading scripts from within the agent

  • Category: Application Development
  • Platform: All Platforms
  • Release: 9.0
  • Role: Developer
  • Tags:
  • Replies: 1

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

Feb 4, 2015, 8:53 PM
21 Posts
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


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal