Question

Evonsys
LK
Last activity: 5 Oct 2025 10:44 EDT
How to remove XML tags from a file
I am uploading a document to an AWS S3 bucket from PEGA using a REST connector (PUT method). For the contents of the document, I am decoding the data and assigning it to the .request.body_PUT
property.
For example, if I upload a file that contains the text:
"Hi I am a file",
this is the expected content of the uploaded file.
However, when I open the file in S3, I see the following content instead:
<?xml version="1.0"?>
<pagedata>
<pxObjClass>Hi I am a file</pxObjClass>
</pagedata>
It seems like PEGA is converting the clipboard page to XML and uploading that instead of the raw text.
Is there a way to prevent PEGA from adding these XML tags and upload only the raw content?