
Announcements
Hey,
I am looking for a hint to pass a multipart/form-data record with a diffrent body schema. Within PowerApps I receive the error due to the different schema and I dont see any chance to set the default values at Power Automate/Custom Connector. Or did I miss something at the settings?
First Body Record = String
Second Body record = Object
CustomConnector.UploadFile(
{
'$content-type': "multipart/form-data",
'$multipart': [
{
headers: {'Content-Disposition': "form-data; name=\'type\'"},
body: "voucher"
},
{
headers: {
'Content-Disposition': "form-data; name=\'file\'; filename=\'Filename\'"
},
body: {
'$content-type': "application/pdf",
'$content': "content"
}
}
]
}
)
Solved
Swagger definition: