Hi All,
I need to run an agent using web url. This Agent should open a document whose id I need to pass through URL.
Something like this:
http://…?OpenAgent&DocID…
Any idea and suggestion, how to do this.
Thanks
Hi All,
I need to run an agent using web url. This Agent should open a document whose id I need to pass through URL.
Something like this:
http://…?OpenAgent&DocID…
Any idea and suggestion, how to do this.
Thanks
Subject: NotesSession.DocumentContext and Query_String
If you need to get information from the URL in an agent called from a browser, you need to set a document based on the NotesSession.DocumentContext property and then parse out the Query_String item on that document. If you get your document ID this way, then you should be able retreive your document in your agent code or build a URL to redirect the browser.
However, if you have the ID for the document anyway, why pass it through an agent? Unless you want to do some other special processing in your agent, you can just as easily construct a direct URL to a document using the ID as to construct a URL to your Agent. If you’re not using the UNID, but a domain data key, you simply need a view with a first column sorted on that key and then you use a URL like this:
http://www.example.com/data.nsf/view/key
Using a UNID is even easier:
http://www.example.com/data.nsf/0/unid
since /0/ represents a special access method - a sort of ‘virtual view’ - for direct access via the UNID.
Check designer help for more info on DocumentContext or URL Commands.