Change Summary
Release Date | Release Version | Change Description | Link |
|---|---|---|---|
October 3rd, 2024 | 2024.3 | Edit Custom Record Type Settings for Contract -Agreements | |
October 3rd, 2024 | 2024.3 | Edit Our Contract Page Layout to add Create Contract button in Agreements Related List |
Overview
Agreement generation and management of Contracts, Subcontracts, and Opportunities include the Reviews associated with Agreements. This feature gives its users the ability to create different types of Agreements, along with efficiently managing their associated Agreement Teams and other processes such as Internal and External Reviews.
This guide walks you through the configuration steps required to enable the Agreements feature in your organization.
Audience
Salesforce Administrators
IT Support
Prerequisites
Ensure that TechnoMile Contracts Suite is already installed and configured. The version of this package must be 2024.3 or higher.
Configuration: Our Contract and Subcontract
Assign Permission Set
IMPORTANT
The steps mentioned in this topic cover all Profile Permissions listed in topics below this section and hence are not required to be performed, once Permission Set is assigned.
However, you are additionally required to provide Profile Permissions for both the External Reviewer Custom Object and its related Fields.
Click the gear icon and select Setup.

Enter text users in the search bar and click Users.

Click a User that you want to assign Permission Set to.
NOTE
In this document, Permission Set has been assigned to ONE User. However, you can provide the same Permission Set to as many Users, as per your requirements.

Scroll down to Permission Set Assignments and click Edit Assignments.

Select and move Agreements Full Access from Available Permission Sets to Enabled Permission Sets using the Add arrow button and click Save.
Permission Set is assigned.
Provide Access to Custom Profiles
IMPORTANT
All the steps mentioned under this topic and its sub-topics are not required to be performed, once Permission Set is assigned.
However, you are additionally required to provide Profile Permissions for both the External Reviewer Custom Object and its related Fields.
Enable Apex Class Access
Go to Profiles using Setup search.
Click to open a Profile that you want to provide Agreements access to.
NOTE
In this document, permissions have been provided to ONE Profile. However, you can provide the same permissions to as many Profiles, as per your requirements.

Click Enabled Apex Class Access.

Click Edit.

Select and move the following eleven Apex Classes from Available Apex Classes to Enabled Apex Classes using the Add arrow button and click Save.

Enable Custom Setting Definitions Access
Click Enabled Custom Setting Definitions Access.

Click Edit.

Select and move the following four Custom Setting Definitions from Available Custom Setting Definitions to Enabled Custom Setting Definitions using the Add arrow button and click Save.

Give Access to Custom Objects
Click Edit and scroll down to give Custom Object Permissions.

For Custom Object Permissions, ensure that you select the following checkboxes.

Click Save.

Give Access to Custom Fields
Scroll down to Custom Field-Level Security and click View to edit the following Custom Field-Level Security fields.

IMPORTANT
Refer to the following table to give access to Fields of Custom Objects.
Object
Access Type
Field(s)
Agreement
Read and Edit
All fields
Agreement Partner
Read and Edit
All fields
Agreement Team
Read and Edit
All fields
Our Contract
Read
All fields
External Reviewer
Read and Edit
All fields
Subcontract
Read and Edit
All fields
Vehicle Partner
Read
All fields
As an example, we have selected the field(s) required for the Agreement (Custom Object).
Click Edit to select the fields for defining the Agreement Field-Level Security and click Save.


IMPORTANT
Similarly, select the checkboxes of all fields as listed in the table above.
Edit Custom Record Type Settings
In Profiles, scroll down to Custom Record Type Settings and click Edit against Agreements.

Select and move the Contract, NDA, SubK, SubK Mod, and TA Record Types from Available Record Types to Selected Record Types using the Add arrow button and click Save.

Edit Vehicle Partner Page Layout
Add Related List and Buttons
Go to Object Manager, enter text Vehicle Partner in the search bar, and click Vehicle Partner.

Vehicle Partner Object Manager opens, go to Page Layouts and open the Vehicle Partner Layout.

Go to Related Lists and drag & drop the Agreements Related List into the Related Lists section.

In Agreements Related List, click the wrench icon.

Scroll down to Buttons and click its plus icon.

In Standard Buttons, select the New checkbox.
In Custom Buttons, select and move the Create NDA and Create TA buttons from Available Buttons to Selected Buttons using the Add arrow button and click OK.

Click Save.
A confirmation message displays.Click Yes.

Related List and Buttons are added.Open App Launcher, enter text Vehicle Partners in the search bar, and click Vehicle Partners in search results.

Click to open a Vehicle Partner record.

Go to the Related tab.
Note that the Related List - Agreements and Buttons - Create NDA and Create TA are visible on this tab.
Edit Our Contract Page Layout
Add Related List and Buttons
Go to Our Contract Object Manager, then go to Page Layouts, and open your currently assigned page layout.

Ensure that you perform the same steps as shown in the Edit Vehicle Partner Page Layout section.
Related List and Buttons are added.
Go to an Our Contract record page using App Launcher.
Go to its Related tab and note that the Related List - Agreements and buttons - Create NDA, Create TA, and Create Contract are visible on this tab.

Edit Subcontract Page Layout
Add Related List and Buttons
Go to Subcontract Object Manager, then go to Page Layouts, and open your currently assigned page layout.

Ensure that you perform the same steps as shown in this section.
Related List and Buttons are added.
Go to a Subcontract record using App Launcher.
Go to its Related tab.
Note that the Related List - Agreements and Buttons - Create NDA, Create TA, Create SubK, and Create SubK Mod are visible on this tab.

Enable Agreement Object: Field History Tracking
Go to Agreement Object Manager, then go to Fields & Relationships, and click Set History Tracking.

Select the Status field and click Save.
History Tracking is set for the Status field.
Edit Agreement Page Layouts
Add Buttons, Related Lists, and Fields
In Agreement Object Manager, go to Page Layouts and click to open Agreement Layout.

Go to Mobile & Lightning Actions and click the wrench icon in the Salesforce Mobile and Lightning Experience Actions section.

Hover your cursor over both the available Create TA buttons.


Drag & drop the Create TA button with Name as TM_TOMA__TM_Create_TA into the Salesforce Mobile and Lightning Experience Actions section.
NOTE
For configuration of Opportunity as shown in this section, use the Create TA button with Name as GRC_ext__OP_Create_TA.

Similarly, drag & drop the Review Done, Send for External Review, and Send for Internal Review buttons into the Salesforce Mobile and Lightning Experience Actions section and click Save.
Note that you can also add the Review Done button to other Agreement Record Type page layouts such as NDA, TA, etc., as per your requirements.Go to an Agreement record using App Launcher.
Click the drop-down arrow to view the Buttons - Send for External Review and Create TA on this page.
NOTE
To view the Review Done button, ensure that you perform the steps as shown in this section.

Go to Related Lists and drag & drop the Agreement History and Agreement Teams Related Lists into the Related Lists section.

In Agreement Teams Related List, click the wrench icon.

In Columns, select and move the Date Completed, Date Sent, and Status fields from Available Fields to Selected Fields using the Add arrow button and click OK.

Click Save.

A confirmation message displays, click Yes.

Buttons, Related Lists, and Fields are added.
Note that you can also add the Agreement History and Agreement Teams Related Lists to other Agreement Record Type page layouts such as TA, SubK, etc., as per your requirements.Go back to your Agreement record using App Launcher.
Go to its Related tab and note that the Related Lists - Agreement History and Agreement Teams, along with its fields - Status, Date Sent, and Date Completed are visible on this tab.

Go back to Page Layouts and click to open NDA Agreement Layout.

Go to Mobile & Lightning Actions and drag & drop the Save As Draft button into the Salesforce Mobile and Lightning Experience Actions section.

Go to Fields and drag & drop the Opportunity, Partner, and Record Type fields into the NDA Agreement Details section.
Button and Fields are added.Go to a NDA Agreement record using App Launcher.
By default, the Details tab opens with the fields - Opportunity, Partner, and Record Type visible on this tab.
You can also click the drop-down arrow to view the Save As Draft button on this page.

Assign Page Layouts to Record Types
Go back to Page Layouts and click Page Layout Assignment.

Click Edit Assignment.

Press the Ctrl key to select the SubK Record Type column, select Page Layout To Use as SubK Agreement Layout, and click Save.

Similarly, select SubK Mod Record Type column and select its Page Layout To Use as SubK Mod Agreement Layout.
Page Layouts are assigned to both SubK Record Types.
Configure Agreement Buttons, Links, and Actions
Go to Buttons, Links, and Actions, expand the drop-down menu against the New Standard button, and click Edit.

Choose Lightning Component against Lightning Experience Override as TM_TOMA:TM_NewTeamingAgreementComp and click Save.
Here, you can also either select the Skip record type selection page checkbox or retain it as unselected, as per the requirements of your organization.
Enable Agreement Team Object - Field History Tracking
Go to Agreement Team Object Manager, then go to Fields & Relationships, and click Set History Tracking.

Select the Date Completed, Date Sent, and Status fields and click Save.
History Tracking is set for the selected fields.
Edit Agreement Team Page Layout
Add Fields
Go to Page Layouts and click to open Agreement Team Layout.

Go to Fields and drag & drop the Date Completed, Date Sent, and Status fields into the Information section.

Click the wrench icon against a newly added field.

Select the Read-Only checkbox and click OK.

Similarly, mark the remaining fields also as Read-Only and click Save.
Read-Only fields are added.Go back to your Agreement record using App Launcher.
Go to its Related tab and note that the Related List - Agreement Teams with its fields - Status, Date Sent, and Date Completed are visible on this tab.

Activate Validation Rule
Go to External Reviewer Object Manager, then go to Validation Rules, and click Edit against Contact_Account_Validation.

Select the Active checkbox and click Save.

Validation Rule is activated.
Create Custom Email Template
Go to Classic Email Templates using Setup search.
Click New Template.

Choose Custom and click Next.

Select the Available For Use checkbox, enter Email Template Name, Template Unique Name, and Subject, and click Next.

Select Field Type as Agreement Fields, Select Field as Agreement No., and Copy Merge Field Value.

Enter your email content into the HTML Body field, paste copied Merge Field Value in it, and click Next.

Click Save.
Email Template is created.
Similarly, you can create another Email Template for external use or use the same template for both Internal and External Reviews.
Copy Email Template ID
In Classic Email Templates, right-click the newly created Email Template and select Open link in new tab.

Copy Email Template ID from the browser tab and paste it into any external application such as Notepad.
NOTE
An Email Template ID can be identified as alphanumeric numbers placed between two / signs.

Copy Record Type ID
Go back to Agreement Object Manager, then go to Record Types, and click to open a Record Type of your choice such as NDA.

Copy the highlighted Record Type ID from the browser tab and paste it into any external application such as Notepad.
NOTE
A Record Type ID can be identified as alphanumeric numbers placed between two / signs.

Configure Custom Settings
Optionally, you can also create an Agreement Record Type Setting for any other Record Type of your choice such as TA, if required.
Go to Custom Settings using Setup search.
Click Manage against Agreement Vs EmailTemplate.

Click New.

Enter Name, paste Email Template Id copied earlier, select the External and Internal checkboxes, paste Record Type Id copied earlier, and click Save.

In Custom Settings, click Manage against Agreement Record Type Setting.

Click New.

Enter Name and Label, paste Record Type Id copied earlier, enter Sequence, and click Save.
Custom Setting is created.
Customize Agreement Wizard Setting
Go to Agreement Wizard Setting using App Launcher.
Select a Record Type and click Show.

Click the wrench icon against a field name.

Enter Contract Vehicle Api, Vehicle Partner Api, and Subcontract Api of fields that are to be mapped and click Update.
Contract Vehicle, Vehicle Partner, and Subcontract fields are mapped. Similarly, you can map any other Contract Vehicle field with its corresponding Vehicle Partner and Subcontract fields.
Create Admin Related List Layout
IMPORTANT
Ensure that you perform the below steps only if you wish to use a Dynamic Related List on the Agreement record page.
Go to Admin Related List Layout using App Launcher.
Select Object as TM_TOMA__Agreement__c and click Go.

Click Add Related List.

Select Related List as TM_TOMA__Agreement_Team__c.
Select and move the User Role, Date Sent, Date Completed, and Status fields from Available to Selected using the right arrow button and click Add Related List.

Edit Agreement Record Page
IMPORTANT
Ensure that you do NOT add the TM_DynamicRelatedList component or any other Dynamic component as shown in this topic onto the Details tab of the Agreement record page having a Dynamic form, as this will result in the New Agreement popup window not loading on clicking of the Create NDA, Create TA, etc. buttons. Instead, it is recommended to add either the Dynamics Related List - Single or Related List - Single component onto the Details tab for creating an Agreement record.
Go back to an Agreement record using App Launcher.
Click the gear icon and select Edit Page.

Lightning App Builder opens.Go to the Related tab and drag & drop the TM_DynamicRelatedList component onto this tab.

Go to the Actions panel and click Add Action.

Select Actions as Review Done and click Add Filter.

Select Field as Status, Operator as Equal, and Value as Submitted for Internal Review and click Done.

Click Done again.
Action with Filter is added. 
Click Save.

A popup window opens, click Activate.

Click Assign as Org Default.

Choose Desktop and click Next.

Click Save.
Agreement Record Page is assigned as Org Default.Click Back.

Agreement record page opens, go to its Related tab and note that the Related List - Agreement Teams is visible on this tab.

Go to another Agreement record with Status as Submitted for Internal Review and click the drop-down arrow to view the Review Done button on this page.

Installation: Contracts Extension for Opportunity
This section and its steps are to be performed ONLY if you wish to use the Agreements feature in TechnoMile’s Growth Sales Cloud Edition product with its Opportunity and Partner objects.
Prerequisites
Please contact TechnoMile Support or email support@technomile.com for the following information prior to starting your installation:
TechnoMile Growth Suite - Sales Cloud Edition product installation link of version 8.7 or higher
TechnoMile Contracts Suite product installation link of version 2024.1 or higher
Open the Contracts Extension version package installation link in a browser.
IMPORTANT
Ensure that only one instance of your Salesforce Org is open in the browser where you want to install this package.
Choose an option as per your user requirements, select the I acknowledge…checkbox, and click Install.
Once installation is complete, you will receive an email notifying you of the same.
Click Done to complete the installation and go back to your Salesforce instance.

Refresh the Installed Packages page to view GRC Extension package in this list.

Configuration: Opportunity
Assign Permission Set
IMPORTANT
The steps mentioned in this topic cover all Profile Permissions listed in topics below this section and hence are not required to be performed, once Permission Set is assigned.
However, you are additionally required to provide Profile Permissions for both the External Reviewer Custom Object and its related Fields.
Click the gear icon and select Setup.

Enter text users in the search bar and click Users.

Click a User that you want to assign Permission Set to.
NOTE
In this document, Permission Set has been assigned to ONE User. However, you can provide the same Permission Set to as many Users, as per your requirements.

Scroll down to Permission Set Assignments and click Edit Assignments.

Select and move Agreements Full Access from Available Permission Sets to Enabled Permission Sets using the Add arrow button and click Save.
Permission Set is assigned.
Provide Access to Custom Profiles
IMPORTANT
All the steps mentioned under this topic and its sub-topics are not required to be performed, once Permission Set is assigned.
However, you are additionally required to provide Profile Permissions for both the External Reviewer Custom Object and its related Fields.
Enable Apex Class Access
Go to Profiles using Setup search.
Click to open a Profile that you want to provide Agreements access to.
NOTE
In this document, permissions have been provided to ONE Profile. However, you can provide the same permissions to as many Profiles, as per your requirements.

Click Enabled Apex Class Access.

Click Edit.

Select and move the following thirteen Apex Classes from Available Apex Classes to Enabled Apex Classes using the Add arrow button and click Save.

Enable Custom Setting Definitions Access
Ensure that you perform the same steps as shown in the Enable Custom Settings Definition Access section.
Give Access to Standard and Custom Objects
Click Edit and scroll down to give Standard and Custom Object Permissions.

For Standard Object Permissions, ensure that you select the following checkbox.

For Custom Object Permissions, ensure that you select the following checkboxes.

Click Save.

Give Access to Standard and Custom Fields
Scroll down to Standard Field-Level Security and then Custom Field-Level Security and click View to edit the following Standard and Custom Field-Level Security fields.

IMPORTANT
Refer to the following table to give access to Fields of Standard and Custom Objects.
Object
Access Type
Field(s)
Opportunity
Read
All fields
Agreement
Read and Edit
All fields
Agreement Partner
Read and Edit
All fields
Agreement Team
Read and Edit
All fields
External Reviewer
Read and Edit
All fields
Our Contract
Read
All fields
As an example, we have selected the field(s) required for the Agreement (Custom Object).
Click Edit to select the fields for defining the Agreement Field-Level Security and click Save.


IMPORTANT
Similarly, select the checkboxes of all fields as listed in the table above.
Edit Partner Page Layout
Add Related List and Buttons
Go to Partner Object Manager, then go to Page Layouts, and click to open FC Partner Layout.

Ensure that you perform the same steps as shown in this section.
Edit Agreement Page Layouts
Add Fields
Go to Agreement Object Manager, then go to Page Layouts, and click to open NDA Agreement Layout.

Go to Fields, drag & drop the Opportunity and Partner fields into the NDA Agreement Details section, and click Save.
Fields are added.
Note that you can also add these fields to other Agreement Record Type page layouts such as TA, SubK, etc., as per your requirements.Go to a NDA Agreement record using App Launcher.
By default, the Details tab opens with the fields - Opportunity and Partner visible on this tab.
Add Buttons and Fields
Ensure that you perform the same steps as shown in this section.
Edit Opportunity Page Layout
Add Related List and Buttons
Go to Opportunity Object Manager, then go to Page Layouts, and open your currently assigned page layout.

Ensure that you perform the same steps as shown in this section.
Activate Validation Rule
Go to External Reviewer Object Manager, then go to Validation Rules, and click Edit against Contact_Account_Validation.

Select the Active checkbox and click Save.

Validation Rule is activated.
Configure Custom Settings
Ensure that you perform the same steps as shown in this section.
Customize Opportunity Agreement Wizard Setting
Go to Opportunity Agreement Wizard Setting using App Launcher.
Select a Record Type and click Show.

Click the wrench icon against a field name.

Enter Opportunity Field Api and its corresponding Partner Field Api that are to be mapped and click Update.
Opportunity and Partner fields are mapped. Similarly, you can map any other Opportunity field with its corresponding Partner field.
Create Admin Related List Layout
Ensure that you perform the same steps as shown in this section.
Edit Agreement Record Page
Ensure that you perform the same steps as shown in this section.
