Hi All,
I have a requirement where i need to pick the file from SFTP server(.csv format) and post the file in web service by using http adapter. we are posting the data in web service by using form-data but iam not able to post it in web service, I'm getting below error can you please help me out here below is the error and details which i have used in content modifier in my iflow.
in content modifier i have used like this
Content-Type: multipart/form-data; boundary= --${header.File Name}.

and in the body of the message is like this

Request clarification before answering.
What is the issue exactly?
see https://influence.sap.com/sap/ino/#idea/275232?section=sectionComments and https://blogs.sap.com/2019/11/14/what-is-form-data-and-how-to-send-it-from-sap-cloud-platform-integr... which helped me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This blog can be useful too: https://blogs.sap.com/2022/10/24/how-to-send-multipart-form-data-from-sap-cloud-integration-to-the-d...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
I don't see the actual error you are facing in the question you have posted so I'll just give you some points to look into.
1. Its not a good idea to define the expression "File Name" in the Message header of a content modifier & call it in the Message body of the same content modifier. You can try having two Content modifiers. One to define your Message header & the next one to define your Message body.
2. Avoid spaces when defining a property in the Message header. You can try "FileName" in the Name field instead of "File Name".
3. Double check the Content-type in the Message Body of the content Modifier. Since you mentioned it to be a CSV file, 'text/csv' & 'application/csv' are two options you may want to check out.
Hope this helps.
Regards
Sam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anil,
Please refer below blogs and it might help you to understand more .
https://blogs.sap.com/2018/02/09/the-marriage-between-form-data-and-sap-cloud-platform-integration/
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.