Web Agents and DocumentContext

I have an agent that can be run either on a scheduled basis or by a URL. I use this code to determine what the agent’s trigger was:

'Find out if we are running from a URL call

'Only web-launched agents have a DocumentContext document

Set doc = sess.DocumentContext

isWeb = Not (doc Is Nothing) 

Unfortunatley, the feature this relied upon - that only Web-launched agents have a DocumentContext - is no longer true in the 8.5 code stream.

Anyone got a suggestion for how to differentiate URL-run agents and schedule-run agents in LotusScript without using this method?

Thanks!

Keith

Subject: All agents have context

Context document has never been restricted to Web only.

Subject: CGI Variables?

  • An URL invocation should at least have PATH_INFO. Scheduled should not. Hope this helps…