Is there any way to add additional connection document for a user automatically?
Subject: Adding new connection document automatically
For new users, you can add the connection documents into the PNAB template (pernames.ntf) that gets deployed to their Notes data directory (assuming you have a standard image or a script to copy a standard set of files). Then, when the Notes client setup is run, it will populate their PNAB with the connection documents from the template. This works for all database templates by the way, not just PNABs.
I don’t know the best way to do it for existing users - maybe some LotusScript in a button…
Subject: RE: Adding new connection document automatically
I thought of that but we do not want all users to have the same connection documents as the nos of server accessible by the user may vary. Thanks for the tips!
Subject: Adding new connection document automatically
I put the following code in the mail template. (Replace the Xs and Zs with your server name and domain name.)
Dim nab As NotesDatabase
Set nab = New NotesDatabase( “”, “names.nsf” )
Dim conndoc As NotesDocument
Set conndoc = New NotesDocument(nab)
conndoc.form = “Connection”
conndoc.ConnectionType = “0”
conndoc.Destination = “CN=XXXXX/O=ZZZZZZ”
conndoc.LanPortName = “TCPIP”
conndoc.PortName = “TCPIP”
conndoc.ConnectionLocation = “*”
conndoc.OptionalNetworkAddress = “10.8.8.8”
conndoc.PhoneNumber = “10.8.8.8”
conndoc.ConnectionLocation = “*”
conndoc.Type = “Connection”
conndoc.ConnectionRecordFirst=“1”
conndoc.Source=“*”
connDoc.ComputeWithForm False, False
Call conndoc.Save( True, True )
You could do the same thing in a button, but that requires the user doing something, and my users aren’t very good at following “please do this” requests. ![]()
You may want to add additional logic that checks if the connection doc already exists, or add a flag to a profile doc that says it was already added on that workstation.
Subject: RE: Adding new connection document automatically
Thanks and appreciate the code. I really want to pick up the skillset in order to improve on my support role. How do I pick up the coding skill for lotus notes?