Question

4
Replies
567
Views
Ratna Rajesh Appari (APPARIR1)
Virtusa Corp.

Virtusa Corp.
US
APPARIR1 Member since 2006 1 post
Virtusa Corp.
Posted: September 27, 2019
Last activity: October 1, 2019
Posted: 27 Sep 2019 18:11 EDT
Last activity: 1 Oct 2019 12:13 EDT
Closed

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
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.