Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
DocumentCollection dc = agentContext.getUnprocessedDocuments();
Document doc = dc.getFirstDocument();
Database db = agentContext.getCurrentDatabase();
Agent agent = db.getAgent("mimpasswordsync");
while (doc != null) {
doc = dc.getNextDocument(); }
} catch(Exception e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.