# Excel Sheet Attach to the Case

**URL:** <https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241>\
**Category:** General\
**Tags:** 8-8-1, case-management\
**Created:** [March 28, 2023, 7:07am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241 "2023-03-28T07:07:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParashuramK](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@ParashuramK](https://forums.pega.com/u/ParashuramK)\
**Post date:** [March 28, 2023, 7:07am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241/1 "2023-03-28T07:07:44Z")

</div>

I have generate excel sheet By using "_pxGenerateExcelFile" ,_ now need to attache this generated excel to case , need stepwise procedure for that.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [March 28, 2023, 7:14am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241/2 "2023-03-28T07:14:30Z")

</div>

@ParashuramK please check the below video for the step by step implementation.

[https://youtu.be/kIX0gXOcqpU](https://youtu.be/kIX0gXOcqpU)

---

<div class="post-metadata">

**Author:** ![ParashuramK](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@ParashuramK](https://forums.pega.com/u/ParashuramK)\
**Post date:** [March 28, 2023, 9:19am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241/3 "2023-03-28T09:19:34Z")

</div>

@Anoop Krishna Thanks for reply . I try this video method but didn’t work , If any other thing you to do this please let me know.

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [March 28, 2023, 10:49am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241/4 "2023-03-28T10:49:58Z")

</div>

@ParashuramK @Anoop Krishna please follow the pega-sanctioned training documentation.

You can search pxGenerate ExcelFile on the [https://docs.pega.com/](https://docs.pega.com/) site:

 ![pxge.jpg](https://pega1.discourse-cdn.com/pega/original/2X/a/acb4be5792d65ce1b30bc416790288f93f06b380.jpeg)

[Generating case documents](https://docs.pega.com/bundle/platform-88/page/platform/case-management/generating-case-documents.html)

[Activities for integrating cases with Excel documents](https://docs.pega.com/bundle/platform-88/page/platform/app-dev/application-documents-apis.html)

[linkAttachmentsToCase(caseID, attachments, attachmentType, context)](https://docs.pega.com/bundle/pcore-pconnect-88/page/pcore-pconnect-public-apis/api/linkattachmentstocase-caseid-attachments-attachmenttype-context.html)

[Attachment management with Constellation DX API](https://docs.pega.com/bundle/dx-api/page/platform/dx-api/attachment-management-v2.html)

[Sourcing attachments from external storage](https://docs.pega.com/bundle/platform-88/page/platform/case-management/sourcing-attachments-external-storage.html)

[File upload and download troubleshooting FAQs](https://support.pega.com/support-doc/file-upload-and-download-troubleshooting-faqs)

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [March 28, 2023, 11:10am UTC](https://forums.pega.com/t/excel-sheet-attach-to-the-case/4241/5 "2023-03-28T11:10:53Z")

</div>

@ParashuramK It should work, we are creating an attachment page and saving it. You can use AttachFile activity which does the same. Please check how to use AttachFile activity. You need to set param.FilepathonServer and pass it to AttachFile.
