---
category: [Administration & Integrations, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions, Platform and Product Extensions/Workday Extend, Platform and Product Extensions/Integration]
keyword: [Extend, Model Components, Attachments, Attachment Objects]
nav: wcp_docs
parent_url: /wcp_docs/
title: Add Attachment Objects
layout: subsection
---

### Prerequisites

<a id="prereq_jg2_hys_pwb"></a>
[Create Extend Apps Using App Builder](/wcp_docs/xer1651695264256.html)

### Context

<a id="context_it5_x1v_v4b"></a>
You can author attachment objects that you can use to store file data and images.

<b>Note:</b> If you delete an attachment object, the object data is no longer accessible. Nobody can access or view the file data or image.

### Steps

1.  <a id="step_N10070_N1006D_N10052_N10001"></a>In App Builder, add an <b>Attachment</b> component.
2.  <a id="step_N10112_N10032_N10028_N10001"></a>Author 1 or more attachment objects for your app. Example using Code mode:

    ```
    {
      "id": 1,
      "name": "CharityImage",
      "label": "Charity Image",
      "defaultSecurityDomains": [
        "ManageCharities"
      ],
      "defaultCollection": {
        "name": "charityImages",
        "label": "All Charity Images"
      },
      "isFilePurgeable": true,
      "fields": [
        {
          "id": 1,
          "name": "uploadedBy",
          "type": "SINGLE_INSTANCE",
          "label": "Uploaded By",
          "target": "WORKER",
          "isPurgeable": true
        },
        {
          "id": 2,
          "name": "uploadedDate",
          "type": "DATE",
          "label": "Uploaded Date",
          "precision": "DAY"
        }
      ]
    }
    ```



### Related Information

[Concept: Attachment Objects](/wcp_docs/rxi1560967931825.html)

[Tutorial: Model Components: Attachments](https://wd5.myworkday.com/workday/learning/course/6827d2f43ff901c21dd08ebaea020296?type=9882927d138b100019b928e75843018d)

[Steps: Purge Data from Extend Objects](/wcp_docs/qxu1643398901124.html)

[Reference: Model Component Attributes](/wcp_docs/hod1558556125085.html)

