Domino Code Fragment
Code Name* UnprocessedDocuments property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.19.31.73 | |
Description* If this agent runs on selected documents, getUnprocessedDocuments returns the selected documents. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class unprocesseddocumentsagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
DocumentCollection dc = ac.getUnprocessedDocuments();
Document doc;
int size = dc.getCount();
System.out.println("Count = " + size);
for (int i = 1; i <= size; i++)
{
doc = dc.getNthDocument(i);
System.out.println
(i + " *** " + doc.getItemValue("Subject"));
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}