LotusScript: Agent.IsEnabled

Hi,

We have an Agent with the following settings:

Trigger Type: Before new mail arrives

Is Enabled: true

Is Activatabled: true

Run On Behalf of:

With at least Designer access rights, the agent is disabled in the database TEST with the following LotusScript lines:

agent.IsEnabled = False

Call agent.Save

we then check agent.IsEnabled from inside the database TEST. It returns “false”.

With the same LotusScript, we check database TEST’s agent.IsEnabled from our “Database Scanner”. It returns “true”…

If we look at the agent in the designer client, we have a “check-5” icon meaning that the agent is disabled for our R6 server.

If we disable it again but now from the designer client, agent.IsEnabled returns “false” from anywhere we check it.

My questions are:

How can i disable this agent by script and see it as disabled from anywhere?

What is behind the “disable” button in the designer client to do it so much better? :wink:

Thanks for your assistance.