Hi Vivek,
you have to pass all your form data as binary because you have to also upload a file content.
Every form-data should start with a boundary which should also be specified in your header:
Your header "Content-Type" should be for example:
SyntaxEditor Code Snippet
"multipart/form-data; boundary=Vivek"
Then each form data should be something like this:
SyntaxEditor Code Snippet
NewLine() +
"--Vivek" +
NewLine() +
"Content-Disposition: form-data; name=""" + <formData field name (key)> + """" +
NewLine() +
<field value>
In case of a file the form data should be something like this:
SyntaxEditor Code Snippet
NewLine() +
"--Vivek" +
NewLine() +
"Content-Disposition: form-data; name=""file""; filename=""" + <filename> + """", "") +
NewLine() +
<file content (binary)>
All formdata text can be changed to binary using TextToBinaryData (from the BinaryData extension).
The all data should be concatenated using BinaryConcat (from BinaryConcat extension).
You can use the result of this concat in your request input parameter BinaryData in body).
In this request you have to use also the header mentioned above (multipart/form-data; boundary=Vivek).
This boundery also should be on the bottom of the total request (as binary) like:
--Vivek-- (including the dashes)



Obviously the response is depending on the API you're using....
I've sent an OML by email you can use for the particular API you are using.
Best Regards,
Jeroen
Can you also send me the OML for this? I have the same problem. Thank you!