Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM India Pvt. Ltd.
IN
Last activity: 4 Oct 2018 13:54 EDT
Case attachments in amazon s3
Someone please guide me on how to intergate with amazon s3 for storing case attachments. I am using PRPC v7.2
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems
All case attachments are instances of Data-WorkAttach-File,
Typically during the save of an instance of Data-WorkAtatch-File there is a declare trigger which gets fired.
Check for the declare trigger pySaveContent
you could override it ,the trigger calls pySaveFileContent trigger activity.
This is responsible to save your attachments in external repository like CMIS repository for e.g. alfresco.
you could change the logic to embed Amazon S3 JavaSDK api's to get this done.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/6edb6beb-cf8e-431c-9679-ef67ce5f3aba.jpg?itok=hzTHfrBw)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/6edb6beb-cf8e-431c-9679-ef67ce5f3aba.jpg?itok=hzTHfrBw)
Pegasystems Inc.
US
You most likely need to write some simple java code using APIs from Amazon as pega does not yet support amazon s3 OOTB, see the similar post: https://collaborate.pega.com/question/unable-connect-amazon-s3-servererror-javalangnosuchmethoderror.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM India Pvt. Ltd.
IN
thanks Kevin
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM India Pvt. Ltd.
IN
Can someone guide me through this process, say at what particular point should I call the AWS S3 API to store and retrive case attachment objects ? has anyone implemented this ?
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems
All case attachments are instances of Data-WorkAttach-File,
Typically during the save of an instance of Data-WorkAtatch-File there is a declare trigger which gets fired.
Check for the declare trigger pySaveContent
you could override it ,the trigger calls pySaveFileContent trigger activity.
This is responsible to save your attachments in external repository like CMIS repository for e.g. alfresco.
you could change the logic to embed Amazon S3 JavaSDK api's to get this done.
-
Kyle MacArthur
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems
For Amazon S3 api's you should see its related documentation.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM India Pvt. Ltd.
IN
Thank you Santosh, Shall I reach out to you in case I have any questions.?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/6edb6beb-cf8e-431c-9679-ef67ce5f3aba.jpg?itok=hzTHfrBw)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/6edb6beb-cf8e-431c-9679-ef67ce5f3aba.jpg?itok=hzTHfrBw)
Pegasystems Inc.
US
If you have further questions, you should either ask questions in the support community or enter a SR through GCS if needed.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM India Pvt. Ltd.
IN
Sure Kevin :)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tata Consulting Services
IN
I have a similar requirement but in my case, after all the files are uploaded, the latest one has to be uploaded in S3 , I have created a RUF with input Paramaters BucketName,Keyname and File name.
I have a similar requirement but in my case, after all the files are uploaded, the latest one has to be uploaded in S3 , I have created a RUF with input Paramaters BucketName,Keyname and File name.
For Keyname parameter, I am passing "pyAttachStream" . I am getting an exception. Is it possible to upload only latest attachment to s3 by using the Base64 encoded pyAttachStream? If no, could you please specify any alternate approach.
Any help in this regard is highly appreciated.
Thanks