> For the complete documentation index, see [llms.txt](https://help.smallbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smallbuilder.com/smallbuilder-documents/release-note/24-update/v.-1.50.md).

# v. 1.50 \~

<details>

<summary><span data-gb-custom-inline data-tag="emoji" data-code="1f4e6">📦</span> <a href="#v-1.52">v 1.52</a></summary>

* Added **Attachment** Component for Including Related Files in Documents

</details>

## v 1.52

:calendar\_spiral: **Release Date**

2024\. 9. 25.

:ledger: **Summary**

* Added **Attachment** Component for Including Related Files in Documents

#### :gear: Feature

{% tabs %}
{% tab title="Builder" %} <mark style="color:blue;">**Document Template Builder**</mark>

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FbQ9GyH63L8OUI0lTdjAI%2Fimage.png?alt=media&amp;token=7aac2d3c-fd88-41eb-ab83-f83f9aaaea7e" alt="" width="375"><figcaption></figcaption></figure>

We have introduced a new **Attachment** component that allows users to add a list of related attachments to documents!

***

📌 Filtering

You can customize the attachment list through filtering options.

{% hint style="warning" %}
From the user's perspective, attachment filtering is based on the **`ContentDocument`**&#x6F;bject. The actual query uses the **`ContentDocument`**, **`ContentDocumentLink`**, and **`ContentVersion`**&#x6F;bjects. Users should ensure they have the necessary permissions for all three objects before using this feature.
{% endhint %}

🏷️ None

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2F67FuRLhpl7SvikbJi4dF%2Fimage.png?alt=media&amp;token=0cc0f0d5-ae58-49ca-928e-a29f392dc5a4" alt=""><figcaption></figcaption></figure>

Retrieve all attachments without any conditions.

🏷️ AND (default)

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FR7DwGjrXrroese4oiiFo%2Fimage.png?alt=media&amp;token=1f15ba57-1972-465c-974e-c318c2abe5c4" alt=""><figcaption></figcaption></figure>

Retrieve attachments that meet **all** specified conditions.

🏷️ OR

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FIhNHcvwO7HDJDAP7krv4%2Fimage.png?alt=media&amp;token=17eb8766-8ed3-4ceb-82ef-e04ee5261c2b" alt=""><figcaption></figcaption></figure>

Retrieve attachments that meet **one or more** specified conditions.

🏷️ Custom

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FwH8KuO8oxvGGXWvept62%2Fimage.png?alt=media&amp;token=891644c3-6cfd-4488-a091-fa75ba92a872" alt=""><figcaption></figcaption></figure>

Use **parentheses**, **AND**, **OR**, and **NOT** to construct your own logical filter conditions.

The example image shows a query searching for attachments where the file name starts with "Report" and the extension is either "png" or "jpg."

***

<mark style="color:red;background-color:yellow;">**✨**</mark> <mark style="color:red;background-color:yellow;">Please note that</mark> <mark style="color:red;background-color:yellow;">**only one Attachment component**</mark> <mark style="color:red;background-color:yellow;">can be added to a document</mark>

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fl4LqWP9RI9uqMt3Ee1b8%2Fimage.png?alt=media&amp;token=40c3d44b-9fa9-4c35-a11b-ca4fa8cdf6e2" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="PDF Viewer" %}

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Ft1TMMVFzcAqyIiTtYPxw%2Fimage.png?alt=media&amp;token=da31cc64-6006-4020-859e-17da068e9496" alt=""><figcaption></figcaption></figure>

The list of related files from the record will be displayed according to the filter settings,

and each file can be directly ✨**downloaded** with a single click.

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FDKHhCxi8Yl1HcWtTSD4q%2Fimage.png?alt=media&amp;token=6ad9e880-0572-4d31-9c74-feac25c4de00" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
