I want to change the status of the documnets after three(3)months by using scheduled agent.Agent should be run on daily and check the documents and identify which documnet creation date more than 90 days(3 months)
Software/Hardware used:
ASKED:
April 9, 2008 11:34 AM
UPDATED:
April 10, 2008 1:58 PM
Check into these methods and objects in designer help. The code this comes from deletes all attachments from any notes documents older than 30 days.
‘ declare and set a comparative value equal to now
Dim rightnow As notesdatetime
Set rightnow = New notesdatetime (Now)
‘ set the comparative value back 30 days
Call rightnow.adjustday(-30) ‘ set to 30 days ago
‘get a collection of documents
‘Loop through the documents.
If (doc.created < rightnow.LSLocalTime) Then
‘Do processing
End If
Clearly, AGuirard’s answer is far superior to mine. If the modification needs to be included within existing LotusScript, you could leverage my suggestion. Otherwise, the formula code AGuirrard provided it much better.