---
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, Atttachment Objects]
nav: wcp_docs
parent_url: /wcp_docs/
title: Add Attachment Objects in IntelliJ
layout: subsection
---

### Context

<a id="context_it5_x1v_v4b"></a>
You can use the Workday Extend Plugin for IntelliJ to author attachment objects in JSON. You can store file data and images in attachment objects.

<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="add_attachment_object"></a>Right-click the `model` folder of your app, and select <b>New</b> &gt; <b>Model Component</b> &gt; <b>Attachment</b>.
2.  <a id="step_N10112_N10032_N10028_N10001"></a>Author 1 or more attachment objects for your app. Example:

    ```
    {
      "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"
        }
      ]
    }
    ```



### Next Steps

<a id="postreq_N10070_N1003A_N10001"></a>
Add 1 or more business processes to your app.

### Related Information

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

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

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

