# Link a file from a prior period

**URL:** <https://community.silverfin.com/t/link-a-file-from-a-prior-period/2541>\
**Category:** Templates\
**Created:** [January 3, 2025, 10:54am UTC](https://community.silverfin.com/t/link-a-file-from-a-prior-period/2541 "2025-01-03T10:54:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasB](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@ThomasB](https://community.silverfin.com/u/ThomasB)\
**Post date:** [January 3, 2025, 10:54am UTC](https://community.silverfin.com/t/link-a-file-from-a-prior-period/2541/1 "2025-01-03T10:54:28Z")

</div>

Hi there

We want to link a file from a previous period as a reference in the current period (e.g. engagement letter).  
Everything works apart from the link to the prior period attachment. Is this possible?  
This design is so the reviewer can easily track changes from one period to the next.

```auto
|Attach copy of latest engagement letters
|{% input custom.el.copies as:file default:period.minus_1y.reconciliations.cake1.custom.el.copies %}
|{{ period.minus_1y.reconciliations.cake1.custom.el.copies }}

{% newline %}

```

Appreciate the help

---

<div class="post-metadata">

**Author:** ![Romy\_Vermeeren](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/romy_vermeeren/32/2295_2.png) [@Romy\_Vermeeren](https://community.silverfin.com/u/Romy_Vermeeren)\
**Post date:** [January 6, 2025, 10:25am UTC](https://community.silverfin.com/t/link-a-file-from-a-prior-period/2541/2 "2025-01-06T10:25:07Z")

</div>

Hi @ThomasB

When you say you want to “link” the attachment, what do you think should happen?  
Should the user see which attachments were uploaded in the previous year, or do you want them to click on a link that takes them to the previous year?

You may also want to look into document.link functionality for this use case:

> **[Input](https://developer.silverfin.com/docs/input#document-link)**
>
> With inputs tags you can create input fields in the Silverfin templating language.

In your use case, that should work as follows:

```auto
{% for doc in period.minus_1y.reconciliations.cake1.custom.el.copies.documents %}
  Name: {{ doc.file_name }}
  Link: {{ doc.link }}
{% endfor %}

```

Kind regards,  
Romy
