Hi @Pratik Sharma - Thanks for providing the above. Just to double-check, is the URL of the API that you're calling the following? (works on Postman but not via Logic Apps?)
If so, it looks like a hostname pointing to a server running on your local network so when Logic Apps attempts to call the same URL via its HTTP connector, it's not able to resolve the hostname on the internet.
UPDATE:
When constructing multipart request using the HTTP connector, you'll want to describe the request using JSON as shown below:
{
"$content-type": "multipart/form-data",
"$multipart": [
{
"body": "contents of a file 1",
"headers": {
"Content-Disposition": "form-data; name=\"file1\"; filename=\"file1_name.txt\"",
"Content-type":"text/plain"
}
},
{
"body": "contents of a file 2",
"headers": {
"Content-Disposition": "form-data; name=\"file2\"; filename=\"file2_name.txt\"",
"Content-type":"text/plain"
}
}
]
}
and add it in the Body field of the Connector as shown here:
For more info, here's the doc on the matter: Content with multipart/form-data type
Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.