Set up content anchoring
Content anchoring has no org-wide switch and no feature activation record. A user can create, see, and follow anchors only when they hold the Content Anchoring User custom permission, which the WV Content Anchoring permission set grants. Installing the packages can also grant it to profiles; visit the warning in Step 1. To set up content anchoring, follow the steps in these sections:
- Step 1 - Assign permission sets
- Step 2 - Add the Anchors panel to customized Document record pages
- Step 3 - Add the All Anchors tab to your app navigation
- Step 4 - Confirm the enhanced document viewer settings
- Step 5 - (Optional) Configure Data 360 suggestions
- Step 6 - Check the Relationship Visualizer legend
Step 1 - Assign permission sets
Each user who creates, manages, or follows anchors needs WV Content Anchoring and a Regulated Content Cloud user permission set. Add CM Content Anchoring for users who need the All Anchors tab.
Content anchoring permission sets
| Permission set | API name | What it grants |
|---|---|---|
| A Regulated Content Cloud user permission set: CM_ContentAuthor, CM_ContentReadOnly, or CM_SystemAdmin | mvn__CM_ContentAuthor, mvn__CM_ContentReadOnly, or mvn__CM_SystemAdmin | Access to the anchoring search, list, and Relationship Visualizer features, and read access to Anchor Link records. |
| WV Content Anchoring | mvn__WV_Content_Anchoring | The Content Anchoring User (mvn__WV_Content_Anchoring) custom permission, which turns on every anchoring feature for the user, and create, read, and edit access to Anchor Link records. |
| CM Content Anchoring | mvn__CM_Content_Anchoring | Visibility of the All Anchors tab. |
The All Anchors tab has its own permission set because a tab can only be made visible by a permission set or profile, not by a custom permission.
To assign the permission sets to a user:
- In the Quick Find box in Setup, search for and select Users.
- Select the user.
- Click Edit Assignments on the Permission Set Assignments related list.
- Add WV Content Anchoring, CM Content Anchoring, and, if the user doesn't have one yet, a Regulated Content Cloud user permission set such as CM_ContentAuthor.
- Click Save.
Installing or upgrading the packages can grant the Content Anchoring User custom permission to profiles. An Install for Admins Only installation grants it, with full access to Anchor Link records, to the System Administrator profile, so System Administrators can use content anchoring without WV Content Anchoring. After you install or upgrade, open each profile in Setup and check whether Content Anchoring User is listed under Enabled Custom Permissions. Assign the permission sets to other users who test or support content anchoring.
Keep these points in mind:
- A user without the Content Anchoring User custom permission sees no anchoring features: no Create Anchor button, no markers, no Anchors panel, an empty All Anchors tab, and no Anchor Links nodes in the Relationship Visualizer (the Anchor Links legend entry and a count of 0 still appear). The document preview itself works as usual.
- A user without CM Content Anchoring does not see the All Anchors tab. Opening the tab's address directly shows "Page doesn't exist" or returns to Home.
- Anchoring is not controlled by the Annotate (
CM_Annotate) permission or by the Role Permissions matrix. - Reading anchors also needs WV Content Anchoring. Read access to Anchor Link records from a Regulated Content Cloud user permission set alone shows no anchors in the anchoring screens.
- Document edit access is not checked: anyone who holds WV Content Anchoring can create, edit, repoint, and remove anchors on any document version they can read, including anchors that other users created. There is no permission set for following anchors only, so everyone who can follow anchors can also manage them. Visit Anchor visibility and permissions.
- Copying anchors to new versions, automatic re-finding, and the Move anchor offer need no setup.
- If users see "Anchoring is unavailable because Content Management is not fully installed. Contact your administrator.", the installed Medical Information Cloud packages don't match. Visit Known limitations and troubleshooting.
To turn off content anchoring for a user, remove WV Content Anchoring and CM Content Anchoring, and check that their profile doesn't grant the Content Anchoring User custom permission. The anchors the user created stay in place, and other users can still manage them.
Step 2 - Add the Anchors panel to customized Document record pages
The Document Record Page (mvn__CM_Document_Record_Page) Lightning page that ships with
Regulated Content Cloud includes the MCM - Anchor Rail component at the top of its sidebar, next
to the MCM - Document Preview component on the Preview tab. If your users are assigned this
page, there is nothing to do.
If your org uses a customized or cloned Document record page, add the component to it:
-
From Setup, open Object Manager and select Document.
-
Click Lightning Record Pages and open the page your users are assigned.
-
Click Edit to open the page in the Lightning App Builder.
-
From the components panel, under Custom - Managed, drag MCM - Anchor Rail to the top of the sidebar.
The page must also contain the MCM - Document Preview component. The two components work together; without the preview, the panel reads "Open a document preview to manage anchors."
-
Click Save, then Activate if the page is not already active. Repeat for each Document record page your users are assigned.
Step 3 - Add the All Anchors tab to your app navigation
The MCM, MCM Admin, and MCM Console apps deployed by the V19 setup configuration do not include the All Anchors (mvn__CM_All_Anchors) tab in their navigation. Add it to each app where your users need it:
- In the Quick Find box in Setup, search for and select App Manager.
- In the row for the app, click the dropdown and select Edit.
- Click Navigation Items.
- Move All Anchors from Available Items to Selected Items.
- Click Save.
Users who have CM Content Anchoring can also open the tab from the App Launcher.
Step 4 - Confirm the enhanced document viewer settings
Anchoring works only in the enhanced document viewer, so the viewer must already be working in your org. A file can be anchored only when:
- its extension is listed in the Enhanced Viewer Extensions
(
mvn__CM_Enhanced_Viewer_Extensions__c) field of the Default (CM_Default) MCM Global Setting (mvn__CM_Global_Setting__mdt) record, and - it is not a Files Connect preview.
Other files open in Salesforce's content previewer, which has no anchoring features. On those files the Anchors panel shows the notice "This file opens in the standard preview, so passages can't be selected or highlighted here. Anchoring works on files that open in the enhanced viewer." and still lists the file's existing anchors.
For a document version that is displayed through its viewable PDF rendition, these checks apply to the rendition, so a Word document with a PDF rendition is anchored on the PDF.
To check the list of extensions:
-
In the Quick Find box in Setup, search for and select Custom Metadata Types.
-
In the MCM Global Setting row, click Manage Records.
-
Click Edit next to the Default record.
-
Confirm that Enhanced Viewer Extensions includes
pdfand, to anchor Word documents,docx, and does not includedoc. The value is a comma-separated list of lowercase file extensions without dots. The recommended value is:pdf, docx -
Click Save if you made changes.
MCM Global Setting records are held in the org's platform cache, so a change can take up to 48 hours to apply unless the cache is cleared.
Legacy Word files (.doc) aren't supported by the enhanced document viewer. If doc is listed in
Enhanced Viewer Extensions, a .doc file's preview can stay on a loading spinner and never open.
Remove doc so that .doc files open in Salesforce's content previewer. Visit
Known limitations and troubleshooting.
The upgrade keeps your current value. After the upgrade, remove doc if it is listed, and
add docx if it is missing.
Word documents (.docx) open in the enhanced document viewer when docx is listed, and a Word
document can be either end of an anchor, including text in tables and lists.
The viewer converts Word documents in the browser and downloads substitute fonts from
www.pdftron.com to do so. No document content is sent. If that address is blocked, Word documents
still open and anchors still work, but text can move slightly.
Step 5 - (Optional) Configure Data 360 suggestions
By default, and with no configuration, Create Anchor suggestions use keyword matching, shown as Content match. Keyword suggestions search the document version's fields, such as its title, answer, and rich text content, but not the text inside uploaded files.
If your org uses Data 360, you can configure passage-level semantic suggestions, shown as Data 360. Data 360 suggestions can find passages inside uploaded files, including PDFs. Anchoring suggestions don't call Agentforce or a prompt, but Data 360 indexing and search use Data 360's consumption-based pricing.
Data 360 suggestions need all of the following:
- The Data 360 content search connector (
mvn-content-dc-search), version 0.5 or later. The connector must be installed in your org, and the V19 installation doesn't install it. Earlier versions can't return passages, so anchoring suggestions show Content match. To find out which version is installed, or how to get version 0.5, visit How to contact customer support. - A Data 360 search index over document version content that includes file attachments, in the status Ready. Use Vector search. Building an index that includes file content requires Einstein and Agentforce to be turned on in Setup. Create the index last, after the data streams and data model it uses are in place, and keep its name to 26 characters or fewer. For the full data stream, data model, and index procedure, contact customer support. Files that were last modified before the data stream was created aren't ingested until they are modified again.
- A Content Search Settings record for anchoring, as described below.
To route anchoring suggestions to Data 360:
-
In the Quick Find box in Setup, search for and select Custom Metadata Types.
-
In the Content Search Settings row, click Manage Records, and then click New.
-
Enter these values:
Field API name Value Label A name that describes the record, for example Anchoring Data 360.Content Search Settings Name A unique API name, for example Anchoring_Data_360.Order mvn__CM_Order__cA number lower than any catch-all record. Records are evaluated in order and the first match wins. Criteria mvn__CM_Criteria__cThe JSON shown below. Search Algorithm mvn__CM_Search_Algorithm__cData 360 Search Index mvn__CM_Search_Index__cYour index name. It must end with _index__dlm.Search Type mvn__CM_Search_Type__cVectorData Space mvn__CM_Data_Space__cdefaultMin Search Score mvn__CM_Min_Search_Score__cA value from 0to1, for example0. Higher values return fewer, closer matches.Every anchoring suggestion search includes the attribute
useCase=ContentAnchoring, so this criteria matches anchoring searches only:{"path": "customAttributes.useCase","operator": "Equals","value": "ContentAnchoring"} -
Click Save. The record applies to the next search; nothing needs to be deployed.
To verify the configuration, select text in a document and click Create Anchor. Suggestions should show the Data 360 chip. If they still show Content match, check that:
- Search Algorithm is Data 360,
- the index name is correct and the index is Ready,
- no record with a lower Order, such as a catch-all record, matches anchoring searches first, and
- the connector, version 0.5 or later, is installed, and
- you selected ordinary text, not a document number: a document number that matches a document is looked up directly and shows Content match.
To turn Data 360 suggestions off, delete the record or set its Search Algorithm to Einstein.
Keep these points in mind:
- If Data 360 returns an error, or the connector is not installed, anchoring suggestions fall back to Content match. This is different from published-document search, which does not fall back.
- If the Data 360 index answers but finds nothing, the Suggested tab reads "No related passages found. Refine your search above, or switch to Browse to pick any document." It does not fall back to Content match.
- A catch-all Content Search Settings record, or any record whose criteria match anchoring searches, also routes anchoring suggestions.
For more information about Content Search Settings records and criteria, visit Content Search Configuration.
Step 6 - Check the Relationship Visualizer legend
The Relationship Visualizer needs a Document Relationship (CM_Document_Relationship)
Relationship Visualizer Configuration
record, which the installation may not create. If the visualizer shows "Failed to load
configuration: No active Relationship Visualizer configuration found for: CM_Document_Relationship",
create the record with the values listed in Relationships
and leave Default Legend Configuration (mvn__RV_Default_Legend_Configuration__c) blank. The
built-in default legend, used when that field is blank, includes Anchor Links.
If the record already exists and its Default Legend Configuration is not blank and has no
anchor-link entry, add this entry to the JSON array. This includes the four-entry legend (anchor,
parent, related, and child) that earlier versions of the Relationships page listed.
{ "value": "anchor-link", "label": "RV_Legend_Anchor_Links", "checked": true }
Without this entry, anchors are not shown in the visualizer and there is no legend checkbox to show them. Visit Relationships.
Control which document versions can be cited
Document versions in a retired state are not offered as a Reference in the Create Anchor and
Repoint Anchor windows: not in suggestions, document-number searches, Data 360 suggestions, or
Browse. The states are the ones named in the Obsolete State, Superseded State,
Withdrawn State, and Rejected State fields of your
Document Lifecycle
(mvn__CM_Document_Lifecycle__mdt) records. These are the lifecycle's own state fields, which drive
how documents are superseded, withdrawn, and rejected, so don't change them only to control
anchoring. These states are also left out of the Browse tab's Status filter, which can take
a while to reflect a lifecycle change.
The states from all your Document Lifecycle records are combined: a state named in one lifecycle's Obsolete State, Superseded State, Withdrawn State, or Rejected State field is not offered as a Reference in any lifecycle. Because publishing a new version moves the previous published version to the Superseded state, an earlier published version can't be cited once a newer one is published.
Existing anchors to a version that is later retired are kept and can still be opened.
