Question
DHL
IN
Last activity: 8 Jun 2017 0:49 EDT
How to pass a file and metadata as form-data in Connect-REST post method body
Hello,
We are on pega 6.3Sp1 and we have a requirement to connect to an API through Connect-REST post method.
For this we need to pass file and some metadata in body of the request.I am able to call the service and perform functionality using Postman(attached postman configuration)
As suggested in one of the article in PDN(https://community.pega.com/support/support-articles/unable-send-attachment-connect-rest),we tried to set required properties on pyRequestAttachmentPage and for meta data i am setting required data to one property and sending it in the request through body of the connect-Rest rule(attached PRPC Configuration).But i am getting error in response saying "Current Request is not a multipart request".
Please advise me how i can send both attachment and metadata in request.
Thanks,
Jyothi.