One of the advantages to setting up Content Libraries for your activated agreement documents is the ability to develop agreement rules to route your content to specific libraries. By default, when you have content repositories configured your content will all route to the default content library. You can create additional libraries and rules which send your documents to these libraries based on the criteria you define. Follow the instructions in this section to set up Agreement Rules for content delivery.
Setting up a Formula Field on the Agreement Object
- Go to Setup > Create > Objects and click on the Agreement object.
- Under Customer Fields & Relationships click New.
- Choose Formula and click Next.
![](/clm/files/202407.2.0/salesforce/143884824/143885304/1/1615196692252/3-1-2016+4-09-53+PM.png)
- Enter "Contract Routing Formula" into the Field Label field and press tab to automatically create the Field Name.
- Choose Text as the Formula Return Type. Click Next.
![](/clm/files/202407.2.0/salesforce/143884824/143885305/1/1615196692300/3-1-2016+4-12-57+PM.png)
- For the formula, enter "$RecordType.Name" and click Next.
![](/clm/files/202407.2.0/salesforce/143884824/143885306/1/1615196692347/3-1-2016+4-15-12+PM.png)
- Make the formula available to the appropriate user profiles and available to page layouts as needed and click Save in the final step.
Extending the Agreement Rule Object to Include Content
In order to allow users to create rules to route content to specific libraries, you must first extend the Agreement Rule object to create a new "Content Workspace" Rule Type.
- Go to Setup > Create > Objects and click on the Agreement Rule object.
- Under Custom Fields & Relationships, click on the Rule Type field.
![](/clm/files/202407.2.0/salesforce/143884824/143885307/1/1615196692392/3-1-2016+4-50-16+PM.png)
- Scroll down to Picklist Values for the field and click New.
![](/clm/files/202407.2.0/salesforce/143884824/143885308/1/1615196692439/3-1-2016+4-54-26+PM.png)
- Add the picklist value "Content Workspace" and click Save.
![](/clm/files/202407.2.0/salesforce/143884824/143885309/1/1615196692482/3-1-2016+4-56-22+PM.png)
- Return to the Agreement Rules Object Details page and click on the Rule Object Custom Field.
![](/clm/files/202407.2.0/salesforce/143884824/143885310/1/1615196692526/3-1-2016+4-59-17+PM.png)
- Add the value "Content" to the Rule Object picklist.
![](/clm/files/202407.2.0/salesforce/143884824/143885311/1/1615196692577/3-1-2016+5-01-13+PM.png)
- Now that you have added new picklist options, you need to edit field dependencies. From the Rule Object detail, click Change under Picklist Options.
![](/clm/files/202407.2.0/salesforce/143884824/143885312/1/1615196692629/3-1-2016+5-04-36+PM.png)
- Click Next to display the last column in the picklist.
- Under the Content Workspace column, click on Content and click Include Values.
![](/clm/files/202407.2.0/salesforce/143884824/143885313/1/1615196692677/3-1-2016+5-08-38+PM.png)
- Click Save.
Creating a Content Workspace Agreement
Now that you have extended the Agreement Rule object for document routing, you can begin creating Agreement Rules to route your content to specific libraries. For example, if you have created a library for all your agreements of record type SOW, you can create a new rule to move all documents for records that match the Contract Routing Formula (RecordType.Name) to this library.
When you create a Content Workspace Agreement Rule, observe the following:
- Rule Type must equal "Content Workspace"
- Rule Value must be the name of the Content Library where you want to route the documents (e.g., "AgreementSOW").
For full instructions on creating Agreement Rules, refer to Setting Up Rule-based Agreement Request Process Parameters.
The following image shows an example of an Agreement Rule to route all SOW agreement documents to the appropriate library.
![](/clm/files/202407.2.0/salesforce/143884824/143885314/1/1615196692723/3-1-2016+5-19-18+PM.png)
Finding Content After Activation
Using the above rule, following activation, any SOW agreement is routed to the appropriate library. Go to Libraries to access stored documents.
![](/clm/files/202407.2.0/salesforce/143884824/143885318/1/1615196692911/3-2-2016+3-30-55+PM.png)
Click on a Library Name to view content stored in the library.
![](/clm/files/202407.2.0/salesforce/143884824/143885319/1/1615196692959/3-2-2016+3-32-29+PM.png)
You can also search for your activated agreements by going to Content.
![](/clm/files/202407.2.0/salesforce/143884824/143885320/1/1615196693009/3-2-2016+3-35-03+PM.png)
Content Versions Related List
After an agreement is activated, the attached documents are displayed in the Content Versions Related List (these examples use the above SOW Agreement Rule).
![](/clm/files/202407.2.0/salesforce/143884824/143885315/1/1615196692769/3-2-2016+3-03-28+PM.png)
Drill down into the Content Version details for a document by clicking on the Title in the Content Versions Related List.
![](/clm/files/202407.2.0/salesforce/143884824/143885317/1/1615196692866/3-2-2016+3-25-54+PM.png)
From this page you can download the document, view libraries the document is shared with, go to the Content Detail page to view more information or upload new versions. For more information on working with content, refer to Salesforce help on Salesforce CRM Content.