Search code examples
lotus-noteslotusagent

How to run an scheduled Agent on a local database in Lotus Notes


Lotus 8.5.3

What I need to do is launch an external process in response to an incoming email that matches certain criteria.

Rules cannot do this. Fair enough, looks like the Agent can.

Ok, so setup a LotusScript with an Agent to do what I need, test it with Run--> perfect

Now to get it to run from an email. Simple, right?

Ok, several hours of google fu later and we have some possible problems.

First, discover it must be a local agent in order to have access to the Client files to launch a process. Test that everything else works by running a simple Move action (without requiring local access). This works, so its an access problem.

Set it up as a local agent --> it never gets called.

Next discover that a local agent cannot act in response to incoming email. Sure, lets setup a 5 minutes schedule. No go.

Next, ensure that "Enable Scheduled Local Agents" in the properties and restart. No go. The Agent simply is not called,

Next, learn that in order for a Local Agent to run, it must be located within a local database.

And... that's where I've stalled. No amount of google seems able to answer this for me. What is a local database? I tried going to my Archive folder, then clicking "Create->Agent" to create an agent there (its local, right?) But this did not work either.

So, how can I create a local database which receive emails, and from which I can create an Agent which acts upon the local file system?

Thanks


Solution

  • A local database is a database that resides on user's computer. In this case it would be a replica of the server database.

    The solution is to create a replica (File -> Replication -> New Replica...) on user's computer and make it replicate with server on desired interval. If there are a lot of users this might be a bigger thing to arrange.