**** Please read this in it’s entirety first.
-
I have code that creates a template in a directory on a domino server using the NotesDatabase.Copy() method
-
I would like to also embed that same template in a notes document while I still have a handle on the database object.
-
Is this possible? If so please share
Subject: Yes and No
You can not “embed the template in a Notes document”, but you can attach the template file to a Notes document.
Subject: Correction “Attach”
I would like to Attach the template to a notes document but the template lives on the server file system. Ideas?
Subject: Agent access
Then the agent need to run on the server, and have access to that directory.
What is the reason for this functionality? I am wondering if you are not trying to build a kludge system for something yo umay be able to do in a better way…
Subject: What I am trying to do…
I am decommissioning thousands of notes apps that have been identified as no longer useful. Part of this processes is writing some script to lock the databases down.
Before locking them down I am creating a production template copy of the database and storing it in the decommission record I am creating for each database. This template will be used to role back the database in case a user comes out of the blue and says they need the application.
Subject: Run on server
Just run the agent on the server, and make sure you have the correct access rights.
If you have been tasked with developing this, I would be very surprised if you can’t get your admin to sing the agent with the propert ID.
Or you can create the templates locally and attach them from there.