> For the complete documentation index, see [llms.txt](https://help.auxalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.auxalia.com/plant-tools/planttools/document-linking/workflows/links-from-external-data.md).

# Create links from external data

{% hint style="danger" %}
**Not released yet.** This page describes a function of an upcoming release.
{% endhint %}

PlantLink turns a file path or web address from an external data source - an Excel table or a database - into a document link on the object or drawing, in the same run that imports the other values. A file from outside the project is copied into the project's document folder first, and the copy is linked.

1. Set up a link configuration whose mapped field has **Document link** ticked - see [Create a Document Link](https://help.auxalia.com/plant-tools/plantlink/how-to-use/link-configurations/create-a-document-link.md).
2. Run **Update Links** - or **Assign Data** for a single object.
3. If the target folder already holds another file of the same name, PlantLink asks once for the whole run what to do - see [File Name Collisions](https://help.auxalia.com/plant-tools/planttools/document-linking/reference/file-name-collisions.md). The same file a second time is not asked about.

   ![](https://2994090777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZH2AGHzvPfBW7YdaaGc0%2Fuploads%2Fgit-blob-08e9ecf4f62b22efe1b593d0ad9e3f7fb4688468%2FDL-links-from-external-data-0003.png?alt=media)
4. Select an object and open the **Docs** tab to see its links - see [Docs Tab](https://help.auxalia.com/plant-tools/planttools/document-linking/reference/docs-tab.md).

   ![](https://2994090777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZH2AGHzvPfBW7YdaaGc0%2Fuploads%2Fgit-blob-eef490c59be752de90e8155ecc56888626b205e1%2FDL-links-from-external-data-0004.png?alt=media)

Each file from outside the project's document folder is copied into the mapped field's document folder, and the copy is linked. A file that already lies in the document folder is linked where it is; a web address is linked as a hyperlink. The imported value itself keeps the original path.

A file that is already in the project - same name, same content - is not copied again, so later runs over the same data ask nothing. When a copy is skipped - **Copy only new files**, **Do not copy any files** or the question closed - the object keeps the links it has, and the rest of the run goes on. When PlantLink updates a link on its own after a property change, it cannot ask: it uses the answer saved with **Do not show this message again**, otherwise **Copy only new files**.

When the value changes in the source, the next run updates the link; when it is emptied, the link is removed. Links added by hand stay. A copy that no object links any more stays in the document folder - [Clean up orphaned links](https://help.auxalia.com/plant-tools/planttools/document-linking/workflows/clean-up-orphaned-links.md) links it to the project. While document linking is deactivated for the project, the values are imported but no link is made. On a collaboration project the copies and new folders are put on the server - see [Document linking in collaboration projects](https://help.auxalia.com/plant-tools/planttools/document-linking/workflows/collaboration-projects.md). See [Update Link Configurations](https://help.auxalia.com/plant-tools/plantlink/how-to-use/usage/update-link-configurations.md).
