cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP PO REST receive multipart/form-data text-parameters

Nikiforos
Explorer
0 Kudos
329

Hello everyone,

thank you for your time.

Technical Specs:

  • SAP PO 7.50 SP30

Scenario:

It is required to connect the SAP PO to a 3rd party system. This 3rd party System offers a REST API. Therefore, I would like to use the REST receiver channel.

The problem is, that the 3rd party system requires the REST request to have content type multipart/form-data. It requires a PDF File to be sent as an attachment and two form-data parameters to be provided. Here a screenshot from Postman:

Nikiforos_0-1741103458177.png

Note that two of the for-data parameters are texts, whereas the third is a file.

When I route this postman request to webhook.site, this is the result:

Nikiforos_1-1741103523038.png

Is it possible to replicate this functionality in a REST receiver channel?

I have tried using the module parameter MessageTransformBean to achieve this, but without success.

Thank you in advance!

Greetings,
Nick

Accepted Solutions (0)

Answers (1)

Answers (1)

Nikiforos
Explorer
0 Kudos

I was not able to find a solution in the REST adapter channel itself. I ended up having to write a java mapping, which created the entire form-data call manually.