Create anchors
Create an anchor to link a statement in the document you are working on (the Scientific Statement) to the passage or document that supports it (the Reference). You start from the document's preview, and the Create Anchor window helps you find the Reference: it suggests possible References from other documents, and you can also browse for any document yourself.
Before you begin
- You need the content anchoring permissions. If the Create Anchor button does not appear, ask your administrator or visit Known limitations and troubleshooting.
- The document's file must open in the
enhanced document viewer. Files that open
in Salesforce's content previewer,
for example files whose extension isn't listed in Enhanced Viewer Extensions, do not show the
anchoring bar (the bar above the document that holds the Create Anchor button; it has no title
on screen), and the Anchors panel shows a notice instead of asking you to select a passage.
PDF and Word (
.docx) files can be anchored. A document displayed through a viewable PDF rendition is anchored in that PDF. - You can only anchor text that you can select in the viewer.
Create an anchor
-
Open the Document record and go to the Preview tab.
Above the document, the anchoring bar shows the hint "Select text in the document to create an anchor." and the Create Anchor button. The button stays unavailable until you select text.
-
Select the text that you want to anchor.
The selection is highlighted in yellow, the hint changes to "Passage selected — click Create Anchor to link it.", and Create Anchor becomes available.
-
Click Create Anchor.
The Create Anchor window opens with two panes side by side:
- The left pane shows the Scientific Statement document, the one you are working in, headed by its title and document number, with your Scientific Statement selected. To anchor a different Scientific Statement, select new text in this pane.
- The right pane, Reference document, has two tabs: Suggested and Browse.
-
Find the Reference document. Use the suggestions on the Suggested tab or search the library on the Browse tab. Visit Find a Reference with suggestions and Find a Reference with Browse.
-
Click the document that you want to cite.
The Reference document opens in the right pane, next to the Scientific Statement document.
-
In This link will be opened as, select Precise passage or Whole document. Visit Choose how the anchor opens.
-
For a Precise passage link, highlight the exact passage in the Reference document.
The status line changes from "Highlight the exact passage in the Reference document to link to." to "Reference passage selected (page N)". To trim or extend the passage, highlight it again; the last selection is used.
-
Click Link.
When the anchor is saved, the window closes and an "Anchor created" message confirms the link, for example "Linked to Reference title." The yellow highlight clears, a marker appears at the start of your Scientific Statement, and the anchor is listed in the document's Anchors panel.
If you click Cancel, the window closes and the yellow highlight clears, but your Scientific Statement stays selected, so you can click Create Anchor again without selecting the text again.
In the Create Anchor window, the passage box above each document keeps a fixed height, and long passages scroll inside the box. Before you highlight a Reference passage, the box reads "No passage selected yet." (or "No passage needed for a whole-document link." for a whole-document link).
When you select a different Scientific Statement in the left pane, the suggestions refresh once you pause (after about a third of a second), and Link is briefly unavailable until the new suggestions load. This prevents your new Scientific Statement from being saved with a Reference you picked for the previous one. The right pane goes back to the Suggested or Browse list you picked from, so pick the Reference again.
Find a Reference with suggestions
The Suggested tab searches automatically with your Scientific Statement and lists up to 10 possible References from other documents, strongest matches first. Each suggestion shows:
- the document title
- a snippet of the matching text
- the document number, for example
DOC-0000013 - a chip that shows how the suggestion was found:
- Content match - a keyword match against the document version's fields, such as its title, answer, and rich text content. Keyword suggestions do not search the text inside uploaded files, so for uploaded PDFs they usually match on the document title.
- Data 360 - a passage found by Data 360 semantic search, which can come from inside the file. This appears only when your administrator has configured Data 360 suggestions.
To search for something else, type in the Search other documents (keyword, title, or DOC-number)… box. The search runs shortly after you stop typing, or immediately when you press Enter. Searches of one or two characters are ignored unless they are numbers. To return to the suggestions for your Scientific Statement, clear the box.
You can search by:
- a keyword or a sentence that you remember from the Reference
- a document title
- a document number. For example,
13,DOC-13, and0000013all findDOC-0000013(and notDOC-0000130). Other documents whose numbers end in the same digits, such asDOC-0000113, are listed after the exact match.
When you click a suggestion whose snippet is text from the document body, the Reference document opens scrolled to that passage. The viewer scrolls only when it finds the passage in exactly one place. If it can't, the message "Passage not located" explains that the document is open and that you should scroll to the intended passage before saving. Suggestions that matched on the title or the document number open at page 1.
A suggestion only scrolls to the passage. For a Precise passage link, you must still highlight the Reference passage yourself.
If no suggestions are found, the tab reads "No related passages found. Refine your search above, or switch to Browse to pick any document." If the search fails, a "Search failed" message appears and the tab reads "Couldn’t load suggestions." followed by the reason and "Refine your search above to try again."
If the viewer runs out of time searching a very large document for the suggested passage, the message "Search did not finish" appears instead of "Passage not located": "This document was too large to finish searching in time, so the passage may still be there. The document is open; scroll to the intended passage before saving."
Find a Reference with Browse
The Browse tab lists up to 15 of the most recently modified document versions, newest first, so several versions of one document can appear. Use the filters to find any other document:
| Filter | How it works |
|---|---|
| Title | Finds documents whose title contains the text you enter. |
| Type | Limits the list to one document type. |
| Status | Limits the list to one document status. The list shows Any status followed by the document statuses defined in your org, in alphabetical order, except retired statuses. Visit Retired versions aren't offered. |
| Product | Limits the list to documents related to any of the products you select. The list shows the first 200 products in alphabetical order; when there are more, it reads "Showing the first 200 products. Additional products aren't listed here — narrow the Reference with the Title, Type, or Status filters instead." |
Filters are applied only when you click Apply or press Enter in the Title box. Click Reset to clear them. If the list of statuses can't be loaded, the Status filter offers only Any status; the rest of Browse still works. The list header reads "N recent documents" before you filter and "N matching documents" after, and each row is marked Recent or Match. If nothing matches, the tab reads "No documents match those filters. Adjust the filters above." If you change a filter without applying it, the list reads "Filters not applied yet — click Apply to update the list."
Filtered results are also limited to the 15 most recently modified matches, so if the document you want isn't listed, narrow the filters further.
Documents that you pick from Browse open at page 1.
Rows on the Suggested and Browse tabs show an icon for each document's file type, for example a Word icon for a Word document and a PDF icon for a PDF.
Retired versions aren't offered
Document versions in a retired state are not offered as a Reference. These are the states that
your document lifecycle names as its Obsolete, Superseded, Withdrawn, and Rejected states; in the
default (CM_Default) lifecycle, Obsolete, Superseded, Expired, and Rejected. They
don't appear in suggestions, document-number searches, Data 360 suggestions, or Browse,
including when you repoint an anchor, and those statuses are left out of the Status filter.
Draft, in-review, and published versions can still be cited, and older versions that are not
retired can still be chosen. If your org has more than one document lifecycle, a status that is
retired in any lifecycle is treated as retired for every document.
Anchors that already point to a version that is later retired are kept: they keep their document title and number and can still be opened.
Choose how the anchor opens
After you pick a Reference document, choose a link type in This link will be opened as:
| Link type | What you do before saving | What happens when the anchor is opened |
|---|---|---|
| Precise passage (default) | Highlight the exact passage in the Reference document. | The Reference document opens scrolled to the Reference passage. |
| Whole document | Nothing. The status reads "Whole document — no passage required. The document stays for context; Link saves without jumping to a passage." | The Reference document opens at the top. |
A whole-document anchor has a marker only in the Scientific Statement document. The Reference document shows no marker for it, but the anchor is listed in both documents' Anchors panels.
Link stays unavailable while the anchor is being saved, until the Reference document has loaded, if no Scientific Statement is selected, and, for a Precise passage link, until you highlight the Reference passage.
A Reference document that opens in Salesforce's content previewer, for example because its file type isn't listed in Enhanced Viewer Extensions, can be linked only as Whole document. Passages can't be highlighted in that previewer, so with Precise passage selected, the pane reads "This file can't be highlighted in the preview. Choose Whole document to link to it.", the passage box reads "No passage can be selected in this file.", and Link stays unavailable until you select Whole document.
The Repoint Anchor window shows the same notice. In Edit Anchor, the Reference passage box shows it when Precise passage is selected and the Reference has no saved passage, for example when you change a Whole document anchor to Precise passage, and Update stays unavailable. In both windows, if the Scientific Statement document opens in Salesforce's content previewer and that end has no saved passage, its box reads "This file can't be highlighted in the preview."
To pick a different Reference document, click Change Reference. The link type you chose is kept.
What you can and can't link
- Any Scientific Statement and Reference. Anchoring does not check whether a Scientific Statement and its Reference are related; search only helps you find the Reference.
- Several References. You can anchor the same Scientific Statement to several References, and several Scientific Statements to the same Reference.
- Other versions of the same document. Your current document version, and any draft that shares its file, is never offered as its own Reference. Other versions of the same document can be offered and chosen.
- Versions that aren't retired. Draft, in-review, and published document versions can be chosen as a Reference. Retired versions can't; visit Retired versions aren't offered.
- Duplicates. You can't create a second anchor that links the same two files, with the same link type and the same passages at both ends. Removed anchors don't count. The message "This passage appears to already be anchored to that Reference." appears instead. This check is best-effort: a very quick double-click on Link can still create a duplicate, which you can remove from the Anchors panel.
Messages when you create an anchor
Create Anchor messages
| Message | What it means | What to do |
|---|---|---|
| "Anchor created" | The anchor was saved. | Nothing. |
| "Could not create anchor" with "This passage appears to already be anchored to that Reference." | An anchor with the same Scientific Statement, Reference, and link type already exists. | Use the existing anchor, or choose a different Reference. |
| "Could not create anchor" with "The Scientific Statement and Reference passages must be different." | You selected the same passage at both ends. | Choose a different Reference passage. |
| "Could not create anchor" with "You do not have permission to create anchors on this document." | You can't manage anchors on the Scientific Statement document. | Ask your administrator for access. Visit Anchor visibility and permissions. |
| "Could not create anchor" with "You do not have access to the Reference document." | You can't read the Reference document version or its file. | Choose a different Reference, or ask for access. |
| "Passage not located" | The suggested passage could not be found exactly once in the Reference document. | Scroll to the intended passage and highlight it before saving. |
| "Search did not finish" | The viewer ran out of time searching a very large Reference document, so the passage may still be there. | Scroll to the intended passage and highlight it before saving. |
| "Search failed" or "Browse failed" | Suggestions or the document list could not be loaded. | Refine the search or filters and try again. |
| "No preview" or "No viewable file" | The chosen Reference document version has no file that can be anchored. | Choose a different Reference. |
| "Could not load document" | The chosen Reference document version could not be loaded. | Try again, or choose a different Reference. |
| "This document could not be opened. It may be corrupted or password protected." | The Reference file opened in the viewer but can't be displayed. | Choose a different Reference, or ask the document owner to replace the file. |
| "Could not open the create dialog" | The Create Anchor window could not open. | Reload the page and try again. |
