?
Solved

Lotus Notes view to show all documents older than X Days

Posted on 2010-01-01
6
Medium Priority
?
4,163 Views
Last Modified: 2013-12-18
I created a new view in Lotus Notes 8.5.1 and copied the select criteria from "All Documents" view($All). I called the view "To be deleted". I modified the folder column on this view to allow users to Sort By Folder (Which folder the document is part of)

My question:
Please help me modify this view(selection criteria) to ONLY show all documents older than 80 days from the date they were created. Or create an agent that copies all documents older than 80 days to this view. This view should also EXCLUDE documents in a folder called "Retention" and its sub-folders.

I have agents that will delete all the documents from this view if the doc is older than 90 days. So Users will have 10 days to move documents from this view to folder called "Retention" if they do not want them deleted.

Any help is appreciated. Doesn't matter if done using Lotus Script or Formula language or anyway else.
to-be-deleted.jpg
0
Comment
Question by:LotusNAdmin
  • 3
  • 3
6 Comments
 

Author Comment

by:LotusNAdmin
ID: 26160739
bumped to 500 points
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 26161001
That view based on "Older than X days" is not a good idea. Views based on @Today or @Now should be avoided, for they require a complete refresh each time they're visited. In this case it won't do much harm, for the view would be small and it's in one person's mail database, but you can do without it. Anyway, if you want to conserve space, it is much easier to use Notes' standard archiving. And much more user-friendly.

Read this document first, it's from the Admin Help database: "Mail archiving and policies"
http://www.liberty1.us/help/help85_admin.nsf/f4b82fbb75e942a6852566ac0037f284/10278427847869d7852574d500095232!OpenDocument

If this standard, no-coding-required approach isn't enough, and you really want the view or folder To Be Deleted, how about this scenario:
- create an agent that runs every night, on all documents
- if if finds a document older than x days, it attaches the document to the ToBeDeleted folder
- it also adds a field called ExpireDate, with a date-value of x+10
Archiving can be configured so that it only archives documents that are marked expired, i.e. that have a field ExpireDate.

I'd skip the whole idea of retention, if you use archiving. If they want, they can always find a document back in their archive. I'd also skip the agent, for the same reason: mail isn't lost, just elsewhere. The advantage of an archive database is that the size of most views will be 0, because they are rarely used. After 45 days, the index of a view is discarded by the server.

If you expect huge archives, you could add a separate disk for the archives, and add a redirection-file, to redirect the complete archive directory to a different disk. But that's a different topic.
0
 

Author Comment

by:LotusNAdmin
ID: 26162248
sjef_bosman,

the management understands the view will take a while to load. This view is only for the legal department in our company (11 users) for whom archiving is disabled through policies. They should not have any email older than 90 days unless its absolutely required for legal purposes.

what is the code to find documents older than 80 days? and show in this view
How to exclude documents in the folder "Retention and subfolders" from this view?
How to create a new field called ExpireDate = date created + 90? code or steps please

My plan is to create a view that shows all docs older than 90 days (exclude docs in folder "retention" and its subfolder). Add field called expire date (@created + 90). Show expire date in a column in the view.

I am a notes admin with very little experience in development. Also i prefer the view if possible and not a folder. Thank you.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 total points
ID: 26164823
> what is the code to find documents older than 80 days? and show in this view
      @Select Form="Memo" & @Adjust(@Created; 0; 80; 0; 0; 0; 0)<@Today

> How to exclude documents in the folder "Retention and subfolders" from this view?
That's very hard to do, if not impossible, without the use of an additional field in the document. In a view, it is impossible to use information from another view. The formula with the new field could be:
      @Select Form="Memo" & @Adjust(@Created; 0; 80; 0; 0; 0; 0)<@Today & Retain=""
So you need to add this field when a document is moved to the Retention folder, either using an action or automatically, using a scheduled agent.

> How to create a new field called ExpireDate = date created + 90? code or steps please
That would only be useful when you use standard Notes archiving. You don't need the field, the view formula would be little different from the formulas I already gave. Or do you intend to use archiving for "the last step"? In a formula agent, the code would be:
      Field ExpireDate:= @Adjust(@Created; 0; 90; 0; 0; 0; 0);
Don't forget to remove the field when a document is retained.
0
 

Author Closing Comment

by:LotusNAdmin
ID: 31671918
Sjef: thanks for the solution, it should be perfect
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 26201291
I sincerely hope it works as designed, though I have some doubts... Keep me posted!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question