Question

3
Replies
3705
Views
Sivajyothi Member since 2015 11 posts
HSBC Software Solution
Posted: 3 years ago
Last activity: 3 years 3 months ago
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-re…),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
Share this page LinkedIn