Create local replica with button in e-mail

Hi,

I want to automatically create a local replica on some of our users clients. It is only a selected few that I want to create this replica on so I cannot use a policy. The database I want the users to replicate is a mobile directory.

I want to solve this by sending out an e-mail with a button, when the users click that button I want to automatically create a local replica of the database that resides on the server.

I’d like to know how the script should be built?

If any of you have any other suggestions on how to solve this please let me know.

Thanks in advance!

/Peter

Subject: Create local replica with button in e-mail

Hi,

You can do this easily…

Create a new mail message and insert a button (Create / hotspot / Button…)

In the designer pane of the button, select “LotusScript” and look up the CreateReplica method.

This will do the trick.

Succes.

Roel Verckens

EASI nv.

Subject: RE: Create local replica with button in e-mail

Hi,

All I can find in the help is how to create a replica of the current database. I want to create a local replica of a specific database that resides on the server.

Subject: RE: Create local replica with button in e-mail

Set a reference to another database and call CreateReplica on that.

Dim session As New NotesSession

Dim db As NotesDatabase

Dim replica As NotesDatabase

Set db = session.GetDatabase(“server”, “db.nsf”)

Set replica = db.CreateReplica(“”, “db.nsf”)

HTH,

Charles

Subject: RE: Create local replica with button in e-mail

I found it in the design help… I think I have to sharpen my glasses :wink:

Thank you for your answer!

/Peter