I want to send a multipart JSON request with filecontent in base64 encoded format.
Solution in pega is have it in a top level attachment page (pyRequestAttachmentPage of type Data-ServiceMessage) and set the filetype, file content etc to that page. If there is any value in the attachment page, Pega automatically picks it and sends the request as multipart.
My issue is the REST service is expecting a specific JSON property name for the filecontent. Is there any other ways to create a mutipart request?
When you say multipart JSON request, does it mean that your request contains multiple JSON parts and one of the parts also contains embedded file content within the JSON? It would help if you can post a sample request expected by the external REST service.