All the attachments on a case needs to be stored in filenet in constellation

Have a requirement to upload the documents attached to a case to filenet in constellation. The upload is via Rest API where a unique ID is returned in response and that ID needs to be used for further actions like retrieval, deletion.

Have gone through the below article which talks about achieving this by creating a custom repository

Custom repository

When the upload api gets called, the pzSaveToRepository activity invokes the D_pxNewFile. The pyNewFile extension activity can be used to achieve this but when the save data page is called the data page gets flushed out in constellation(got info after I raised an SR). The ID returned in the response of the API is lost and not able to store it for further actions. The pega SR says that this is product limitation currently. Is there any alternative solution to this?

Did you get any answer to your use case from teh Pega Community? or Could you find any alternative solution? We have a similar use case, we need to configure our Pega Constellation Applications to store content in an external repository via Rest API, case attachments must be stored externally and all attachments management such as create file, delete file, get file, etc. must be performed by invoking REST APIs.

can you please let me know that SR number on private message, I will follow that up

@IsraelU1 have you tried to use Integrating with file and content management systems

The article referenced above (Custom repository by @Rahul_Toky) was a specific use case where the OOTB pattern for storing content was not enough

  • they have a requirement to store create folders in the repository for each case AND
  • then store attachments for each case in each of the corresponding folders in the reporsitory.

The above Content Management will allow you to connect to your repository and store your files, delete your files etc.

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 from Repo 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.

How to send a private message ?