Home > Forum > Actions > Invoke REST Web Service - multipart/form-data

Invoke REST Web Service - multipart/form-data
0

Hi, I need to send data as "multipart/form-data" I am trying to configure the Request Body tab of the "Invoke REST Web Service" action.
I set the Body Type as "multipart" and the JSON part header as "Content-Type: multipart/form-data"

How should the value for the JSON part field be formatted? Should it be in JSON? (I have tried but without success.)

MVP

Hi Franek,

I wasn’t able to use the multipart mode
https://daniels-notes.de/posts/2024/importing-applications-using-an-application#request-body-type-multipart

But it could be different in your case..

I would suggest to add a proxy like HttpToolkit to view the raw outgoing request. You may be able to modify it in a way that the result would be the same as in Postman.
https://daniels-notes.de/posts/2022/debug-web-service-datasource

Best regards,
Daniel

In reply to: Daniel Krüger (Cosmo Consult)

Hi Franek,

I wasn’t able to use the multipart mode
https://daniels-notes.de/posts/2024/importing-applications-using-an-application#request-body-type-multipart

But it could be different in your case..

I would suggest to add a proxy like HttpToolkit to view the raw outgoing request. You may be able to modify it in a way that the result would be the same as in Postman.
https://daniels-notes.de/posts/2022/debug-web-service-datasource

Best regards,
Daniel

I was only able to send one parameter as multipart/form-data—two or more cause a failure, but I need to send more.

Works:

In JSON part header:
Content-Type: multipart/form-data
Content-Disposition: form-data; name="Action"

In JSON part:
ActionName

Doesn't:

In JSON part header:
Content-Type: multipart/form-data
Content-Disposition: form-data; name="Action"
Content-Disposition: form-data; name="Subject"

In JSON part:
ActionName
SubjectName

Unfortunately, I cannot install any MITM tools. I think an SDK is the only way :(