Manage Learn to apply best practices and optimize your operations.

How To Update All Folders of 4.x Mail to R5 Using @UpdateViewDesign

If I replace the design of my archive mail(4.x) with mail50.ntf, the existing folders have the problem "Illegal circular reference". This agent takes all the folders and updates the design with the mail's view ($Inbox).

The agent use an undocumented @Formula to perform the update.

Sub Initialize

Dim session As New NotesSession
Dim db As NotesDatabase
Dim vResult As Variant
Dim macro As String
Dim pos As Integer
Dim nombre As String

Set db = session.CurrentDatabase
Forall v In db.Views
' The views should be folder type and don't system or hiden views
If v.IsFolder And Left(,1) <> "(" Then
pos = Instr(, "")
If pos <> 0 Then
nombre =
While pos <> 0
nombre = Mid$(nombre, 1, pos-1) + "" + Mid$(nombre, pos+1)
pos = Instr(pos + 2, Nombre, "") ' Se inicia la b?squeda del caracter de la ?ltima posici?n en adelante
macro = (|@UpdateViewDesign("| & Nombre & |"; "($Inbox)")|)
macro = (|@UpdateViewDesign("| & v.Name & |"; "($Inbox)")|)
End If
vResult = Evaluate(macro)
End If
End Forall
End Sub

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...