Hi All,
We have a requirement, we need to download case attachments are stored in pegacloudfilestorage. structure would be like One mainfolder under which sub-folders for each case and attachments are within case sub folder.
We need to download them altogether, but looks like pxGetFile support only individual file retrieval.
even if we use pxlistfile api to get results list and iterate, how do we maintain the folder structure(multilevel).
also when we read the file into pega from filestorage it will increase the heap memory, considering this what the max file size that pega support for download.
Thanks,
Prabhu
@Prabhu Subramani
To download case attachments stored in pegacloudfilestorage with a structure of one main folder and subfolders for each case you can use the pxListFiles API to get the list of files and then iterate through them. However maintaining the folder structure (multilevel) can be challenging. You might need to implement custom logic to recreate the folder structure locally after downloading the files. Regarding the heap memory concern Pega recommends not using the internal Pega Platform database for large file storage due to memory constraints. Instead you should configure an external storage repository. The maximum file size that Pega supports for download depends on the configuration and available memory but it is advisable to handle large files using external storage to avoid out of memory errors.
This is a GenAI-powered tool. All generated answers require validation against the provided references.
Using Pega Cloud File storage
Storing Case attachments using external storage