Skip to main content link. Accesskey S
  • HCL Logo
  • HCL Notes and Domino wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Lotus iNotes > Lotus iNotes customization > Running an agent
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Customization of SmartCloud Notes web

Starting in September 2013, the ability to customizate Notes web has been added to SmartCloud. To do so, you use an Extension Forms File, just as with onpremises IBM iNotes. But you would need to download the template from SmartCloud. And then have ISSC check it and install it for you. Once it's ...

Customization updates for 9.0.1 Social Edition

These are the customization updates for IBM iNotes 9.0.1 Social Edition. Ability to override strings Customizers can now override individual strings in iNotes, by adding a dwaxx.properties file (where xx is the two letter language code) to the Extension Forms File and inserting any string ...

Overriding individual strings - example

Starting in iNotes 9.0.1 Social Edition, customizers have the ability to override individual strings. You do it by adding a new properties file in the Extension Forms File (Forms9x) and including the string overrides. Here's an example. Say you want to change the strings that go with the ...

Customization updates for 9.0 Social Edition

These are the customization updates for IBM iNotes 9.0 Social Edition. Extension Forms File The main Forms file has changed from Forms85 to Forms9 and likewise, the Extension Forms File has changed from Forms85x to Forms9x. If you have an existing Forms85x.nsf, you can just rename or copy ...

Customization updates for 8.5.3

These are the customization updates for Lotus iNotes in 8.5.3. Ability to update menu items Previously, customizers could add or remove menu and submenu items from the action bar. Now, customizers can also update existing menu and submenu items. For more information, see the comments about ...
Community articleRunning an agent
Added by ~Olga Lopresaternivu | Edited by IBM contributor~Keiko Nimvelusonikle on August 23, 2010 | Version 7
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
An agent is what you can use in Lotus Notes to automate tasks.
Tags: agent, customization, Lotus iNotes

There are several ways to run an agent in Lotus iNotes.

Results of an agent can be put into a NotesVar:

<NotesVar name=varname value={@DbCommand("haiku";"h_RunAgent";"name";"loc")}>
name = the name of your agent
loc = location of agent (default = 0):
0 = user's mail file
1 = Forms file
2 = Extension Forms file (available starting in 8.5.2)

An agent can insert content directly into the HTML of a page. This agent writes out <option> tags:

<select>
@{@DbCommand("haiku";"h_RunAgent";"name";"loc")}
</select>


You can use an XHR request to execute an agent using a URL like this:

iNotes/Forms85.nsf/iNotes/Proxy/?EditDocument&Form=s_RunAgent&PresetFields=AgentName;name

Note that agents run like this must be in the Forms file. Starting in 8.5.2, there is another preset field you can use:

PresetFields=AgentName;name,CommonAgent;loc
loc = location of agent. The values are the same as above. The default is 1.

Agent properties:
  1. Set the agent's target to: NONE.
  2. Enable the "Run as web user" checkbox on the second tab.
  3. Open your Domino Server document in the names.nsf database.
  4. On the Security tab, set the following field to include your canonical name: "Run unrestricted methods and operations. " By adding your name to the list, you allow any WebAgents created by you to run on this Domino server.

In the agent:
  • MessageBox statements will write text to the server console
  • Print statements will write text to be returned to the browser

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (7)Aug 23, 2010, 6:28:40 PM~Keiko Nimvelusonikle  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility