Managing document templates
In the Document templates area, define whether new documents can be added to contracts from templates.
There are two options for managing templates:
Copying templates from a SharePoint library.
Support of complex document generation with dox42.
There are two options for activating the document templates. You can choose between the configuration interface or the advanced configuration (JSON file).
Choosing between the two options for configuring document templates - This is how it works
Initially you will be offered the configuration interface.
Activate the Advanced configuration via the radio button.
The JSON file for configuration opens.
Configuring the document templates within the configuration interface - This is how it works
Use the Enable document templates checkbox to control the availability of the document templates feature.
Use the drop-down list to select the module.
Select spcopy to use document templates from a SharePoint library.
Select dox42 to generate document templates with dox42.
Document generation with dox42 - This is how it works
In the Server URL text box, add the URL to your dox42 installation.
The dox42 templates are listed in a table.
Create new templates or edit or delete existing templates.
Creating a template
Use the Title text field to define the title displayed in the application interface.
Use the URL text field to define the URL to the document in the SharePoint library.
Use the File extension text field to define the file extension of the file to be generated. This file extension must be supported by dox42.
Editing a template
Select a template from the table.
Click on Edit.
Edit the desired information.
Deleting a template
Select a template from the table.
Click on Delete.
Configuring document templates within the JSON file - This is how it works
Control the availability of the Document templates function with the "active" parameter and the value true or false.
Copy from a SharePoint library
You can use document templates from a SharePoint library
This is how it works
Create a new range starting with "{" and ending with "},".
Use the "engine" parameter to select the "spcopy" value.
Document generation with dox42
You can generate document templates with dox42. For setup and configuration of your dox42 server, contact your dox42 partner.
This is how it works
Create a new range starting with { and ending with },.
Select the value "dox42" via the "engine" parameter.
Configure the available dox42 templates:
Add a node "config".
Add into it a node "dox42".
For the "serverUrl", add the URL to your dox42 installation.
Add a list "templates" for the templates. For each template you need to define:
The title to be displayed in the application interface via "title".
The URL to the document in the SharePoint library via "url".
The file extension of the file to be generated via "targetExtension". This file extension must be supported by dox42.
dox42 example configuration
{ "active": true, "engine": "dox42", "config": { "dox42": { "serverUrl": "https://demo.dox42.online", "templates": [ { "title": "NDA", "url": "https://demo.sharepoint.com/sites/dvelopcontracts365/dox42Templates/NDA-Template.docx", "targetExtension": "pdf" }, { "title": "Customer Agreement", "url": "https://demo.sharepoint.com/sites/dvelopcontracts365/dox42Templates/Customer-Agreement.docx", "targetExtension": "docx" } ] } } }