I recommend to use custom DX Component and leverage DX APIs to upload the attachment through Multipart and associate the attachment id to the case id. The Upload supports multipart document attachment upload to your Repository. Ensure the Repository configurations are configured in the Application rule.
Supercharge Your Digital Channels: The Ultimate Guide to Pega Constellation DX APIs
Attachments (Step1)
- Method: POST
- URL: https://{LabInstanceURL}/prweb/app/retail-banking/api/application/v2/attachments/upload
- Category: Attachments
- Sample API Request: appendUniqueIdToFileName: true
file: (binary)
Attachments (Step2)
- Method: POSt
- URL: https://{LabInstanceURL}/prweb/app/retail-banking/api/application/v2/cases/{CasInseKey}/attachments
- Category: Attachments
Sample API Request:
{
"attachments": [
{
"type": "File",
"category": "File",
"ID": "60b079d2-eb1d-404d-a6dd-c61d7607561c",
"filename": "AlertLog_Dec27.txt"
}
]
}