Question

4
Replies
311
Views
APPARIR1 Member since 2006 1 post
Virtusa Corp.
Posted: 11 months ago
Last activity: 11 months 3 weeks ago

Issue with consuming a REST service of type multipart/mixed

Trying to consume a REST API of type mutlipart/mixed with a file and JSON. Followed the below steps outlined in support articles but service throws the error "UNSUPPORTED_MEDIA_TYPE". This is mainly because Pega setting the content-type header by default as "multipart/form-data" even though mentioning as "multipart/mixed" in Connect REST rule. Anyway to overcome this?

1) Create pyRequestAttachmentPage page

2) Add values for pyAttachNames, pyAttachTypes, pyAttachValues, pyAttachFileNames

3) Fire the connect-REST rule

Pega Version: 7.3.1

Data Integration
Share this page LinkedIn