Configuring a CLM (Conga Contracts for Salesforce) Word Template Solution
This topic walks through the end-to-end process necessary to create a Contracts for Salesforce document, with special focus on the creation of the Word Template used to generate your output agreement. At the end of this configuration process, you will be able to generate an agreement that can be sent for negotiation with Contracts for Salesforce or sent for signature with Conga Sign (or your integrated e-signature solution).
Package Requirements
- Conga Composer
- Conga Contracts for Salesforce
Prerequisites
This topic assumes a basic understanding of Conga functionality, including how to create:
- Conga Queries (and it will be easier if you understand SOQL as well)
- Conga Solutions
- Conga Solution Collections
- Conga Templates
- Clause Library
- Clause Library Structure
In addition, this tutorial uses the Composer Lightning Component for document generation.
Building the Solution
Once you are comfortable with the components mentioned above and have configured your Clause Library, follow the steps below to build a solution that generates a Contracts for Salesforce agreement.
-
Create a Composer Button
-
Create SOQL Queries to Retrieve Managed Clause Data
-
Add the Conga Queries to your Conga Composer button
- In your Conga Solution, use the QueryId parameter to add all queries created in step 2 to your button
- Give each query an alias that corresponds with the Clause Type that it is pulling. Each alias must be unique. You will use those in the merge field syntax for your Word Template in step 4 below
- (Optional) Edit the Conga Query record in a separate tab and add the alias to the title of the query record in order to make it easier to find later. Ex: “My Query Title [queryalias]”
-
Create a Word Template
-
Create a Conga Template and add it to the Conga Solution
- After testing the merge fields, create a Conga Template record
- Turn on Track Changes in Word and upload the Word Template to the Files related list
- Associate the Conga Template record to the Conga Composer button using the TemplateId parameter in your button and the Conga Key value for that particular template record
-
Convert the Composer button to a Lightning Component
- Reference Composer Lightning Component documentation to configure and use the Lightning Component
- Remove the Composer button from the Lightning page
Formatting a Word Template
Use Word auto-numbering to merge clauses into your agreement. For example, if you have a Definitions section that you want to number as 1, 2, 3, etc., your Word Template will look something like this:
________________________________
Definitions
-
{{TableStart:def}}{{HTML:APXT_REDLINING__MANAGED_CLAUSE_TEXT_RICH}}{{TableEnd:def}}
________________________________
You might also have a Word Template that looks like this:
________________________________
Terms and Conditions
- Definitions
-
{{TableStart:def}}{{HTML:APXT_REDLINING__MANAGED_CLAUSE_TEXT_RICH}}{{TableEnd:def}}
-
________________________________
Sub Clauses
Sub clauses are handled using specific configuration in the Clause Library and nested SOQL queries. Reference Merging Sub Clauses for detailed information on how to do this.