I want an archival agent that warns the author of the document that their document will be archived in X number of days if they do not do anything with it.
This agent would run daily and select all documents that are 5 months and 14 days old.
I would like to program this agent in LotusScript.
Does anyone have any ideas as to how I should accomplish this?
Subject: Creating an agent that selects documents based on date and sends an email to the author
Pretty (very) simple to do I’ve wrote the pseudo code below, it’s probably incomplete however.
'//Create selection formula in a scheduled agent, should be something like:
@if(@Adjust(@created;14;5;0;0;0;0);@true;@false))
'//OK - we have the selected documents, now lets send our emails!
'//get document collection using unprocessdocuments
'//loop through the document collection
'//get the name of the person who created the document - preferable abbreviate/canonical format
'//send the person an email (I assume you know how to do this), stating document is going to be deleted (use doc.send)
'//get the next document
'//end the loop
You’re users would appreciate it if you included a doclink to the document that is about to be archived, everything here is straightforward script, and there is more that adequate help provide already by IBM.