Examples: CreateReplica method (NotesAdministrationProcess - LotusScript)

This agent submits a request to create a replica of Guys1.nsf on Company_Server.

Sub Initialize
  Dim session As New NotesSession
  Dim adminp As NotesAdministrationProcess
  Set adminp = _
  noteid$ = adminp.CreateReplica("Software_Server", _
  "Guys1", _
  If noteid$ <> "" Then
    Dim db As New NotesDatabase("Software_Server", "admin4")
    Dim ws As New NotesUIWorkspace
    Call ws.EditDocument(False, db.GetDocumentByID(noteid$))
  End If
End Sub