addServerToAddressBook (NotesRegistration - JavaScript™)
Creates a Server record in a Domino® Directory based on a server ID file and optionally attaches the ID file.
Defined in
NotesRegistrationSyntax
addServerToAddressBook(idfile:string,
server:string, domain:string) : boolean
addServerToAddressBook(idfile:string,
server:string, domain:string, userpw:string) : boolean
addServerToAddressBook(idfile:string,
server:string, domain:string, userpw:string, network:string, adminname:string,
title:string, location:string, comment:string) : boolean
Parameter | Description |
---|---|
String idfile |
The ID file for the server to be added to the Domino® Directory; specify the full path, for example, c:\notes\data\server.id. |
String server |
The name of the server to be added to the Domino® Directory. |
String domain |
The domain of the server to be added to the Domino® Directory. |
String userpw |
The password for the server ID file. |
String network |
The notes named network (NNN) on which the server runs. |
String adminname |
The full name of the administrator of the server. |
String title |
A value for the title field of the Domino® Directory record. |
String location |
A value for the location field of the Domino® Directory record. |
String comment |
A value for the comment field of the Domino® Directory record. |
Return value | Description |
---|---|
boolean |
True if the operation is successful; false otherwise. |
Usage
Set StoreIDInAddressBook true to attach the ID to the Domino® Directory record.This method acts on the Domino® Directory (names.nsf) for the server specified by RegistrationServer, or names.nsf in the local Domino® data directory if this property is not set.
This method occurs automatically with registerNewServer if UpdateAddressBook is true.