Selective replication means that you only need to replicate a set of documents within a Notes/Domino database, instead of all of them. To activate selective replication, you can use Documents by selection formula in the Advanced tab of the Replication Settings dialog box. However, manually implementing this feature for several databases can be cumbersome.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
This LotusScript agent automates the task using the NotesReplicationEntry class. Following are the steps needed to create the agent and an example showing how an agent was used to set a replication formula for multiple mail files.
Follow these steps to create the LoutsScript agent:
- Open the mail template file on the Domino server. You can also use a copy of the mail file template.
- Open the template with Domino Designer.
- Select Click-> Create -> Design -> Agent.
- Enter the Name, Trigger, Schedule and Target for the agent.
Note: Schedule the agent so that it will run after the design of all of the mail files has been converted to the new changes on the mail template file.
- Select LotusScript for the Action type.
- Select Initialize object and enter the following LotusScript code. This will set a Selective Replication by date, for example, Documents starting from January 1, 2009.
Signing the Notes/Domino mail template
To sign the agent with the server ID, perform the following steps:
- Use the Domino Administrator to open the server.
- Go to the Files tab and select Templates only under Show me.
- Select the mail template file.
- Go to Files -> Sign -> and select Active Server's ID.
- On the server console, issue the command:
Tell adminp process all
This will force AdminP to immediately administer this request.
Once the agent has been created, scheduled and signed on the mail template file, replace the design of the mail files using the convert task:
load convert [mail_folder_name]/ * [mail_file_template_name]
After the design conversion task completes, the agent will run on all mail files according to the set agent schedule will set the selective replication formula on all mail files.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Bruck Sewnet. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.