# Need to use a custom repository to store case attachments via RestAPI in Constellation

**URL:** <https://forums.pega.com/t/need-to-use-a-custom-repository-to-store-case-attachments-via-restapi-in-constellation/12014>\
**Category:** General\
**Created:** [May 18, 2026, 11:21am UTC](https://forums.pega.com/t/need-to-use-a-custom-repository-to-store-case-attachments-via-restapi-in-constellation/12014 "2026-05-18T11:21:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IsraelU1](https://avatars.discourse-cdn.com/v4/letter/i/85f322/32.png) [@IsraelU1](https://forums.pega.com/u/IsraelU1)\
**Post date:** [May 18, 2026, 11:21am UTC](https://forums.pega.com/t/need-to-use-a-custom-repository-to-store-case-attachments-via-restapi-in-constellation/12014/1 "2026-05-18T11:21:11Z")

</div>

Continuing the discussion from [All the attachments on a case needs to be stored in filenet in constellation](https://forums.pega.com/t/all-the-attachments-on-a-case-needs-to-be-stored-in-filenet-in-constellation/10970):

Is there any way to achieve this? I have the same use case. We need to store case attachments in an external custom repository via ResT API for applications built in Constellation, we want to make sure whether this is feasible in Constellation or not.

---

<div class="post-metadata">

**Author:** ![RameshSangili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/rameshsangili/32/23377_2.png) [@RameshSangili](https://forums.pega.com/u/RameshSangili)\
**Post date:** [May 19, 2026, 2:06pm UTC](https://forums.pega.com/t/need-to-use-a-custom-repository-to-store-case-attachments-via-restapi-in-constellation/12014/2 "2026-05-19T14:06:51Z")

</div>

I’ve used Azure as my Custom repository to store/retrieve the attachments. We’re leveraging the OOTB data pages to store/ retrieve the files and delete the file if required.

1. Create the Azure Custom repository
2. Configure the OAuth for Azure Custom Repo
3. Configure the Custom repo in Application Definition-\> Integration tab

For a different application in UI Kit, I’ve used FileNet to store/retrieve attachment. However, we tried to invoke the direct API calls for the attachments.

---

<div class="post-metadata">

**Author:** ![GIAND](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/giand/32/23325_2.png) [@GIAND](https://forums.pega.com/u/GIAND)\
**Post date:** [May 19, 2026, 2:11pm UTC](https://forums.pega.com/t/need-to-use-a-custom-repository-to-store-case-attachments-via-restapi-in-constellation/12014/3 "2026-05-19T14:11:45Z")

</div>

This sounds like the exact use case the ability to create custom repositories was created for- [Pegasystems Documentation](https://docs.pega.com/bundle/platform/page/platform/data-integration/custom-repository-connection.html) .
