Home > Domino Tips > Developer > LotusScript > LotusScript agent automates selective mail file replication
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

LOTUSSCRIPT

LotusScript agent automates selective mail file replication


Bruck Sewnet
04.27.2009
Rating: -2.75- (out of 5)


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


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.

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 LotusScript agent:

  1. Open the mail template file on the Domino server. You can also use a copy of the mail file template.
  2. Open the template with Domino Designer.
  3. Select Click-> Create -> Design -> Agent.
  4. Enter the Name, Trigger, Schedule and Target for the agent.
  5. 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.

  6. Select LotusScript for the Action type.
  7. 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.

[IMAGE]
(Click on code for ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
LotusScript
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
Run or restart Notes/Domino agents via text messages
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management
Can I create and copy Microsoft Excel spreadsheets with LotusScript?

Lotus Notes Domino Replication and Synchronization
Give external users access to workflow-based Notes Domino applications
Tivoli Directory Integrator synchronizes Notes Domino 8 directories
Use DXL utilities for advanced replication settings in Notes
Avoid replication issues when editing Lotus Notes response documents
Use LotusScript to create encrypted replicas
Lotus Notes Domino replication primer
More efficient local Lotus Notes database replication
BlackBerry Intellisync error: 'A Lotus Notes error has occurred. Please see log for details.'
Setting up local replication of a Lotus Notes database for offline employees
Routing and replication issues with remote Lotus Domino servers

LotusScript
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management
LotusScript filters and attaches files to a Notes form
How to create mail files using a LotusScript agent

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


enlarged view and script download.)

Signing the Notes/Domino mail template

To sign the agent with the server ID, perform the following steps:

  1. Use the Domino Administrator to open the server.
  2. Go to the Files tab and select Templates only under Show me.
  3. Select the mail template file.
  4. Go to Files -> Sign -> and select Active Server's ID.
  5. On the server console, issue the command:

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:

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.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts