Question

3
Replies
3850
Views
Close popover
Siva Jyothi PamiReddy (Sivajyothi)
HSBC Software Solution

HSBC Software Solution
IN
Sivajyothi Member since 2015 11 posts
HSBC Software Solution
Posted: May 22, 2017
Last activity: June 8, 2017
Closed
Solved

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://pdn.pega.com/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.

Low-Code App Development Data Integration
Moderation Team has archived post