Forum Discussion
Anonymous
6 years agoNot applicable
PowerBI - REST API - Export and then Import in Flow / Power Automate
Hi all, I've been banging my head against a brick wall for a while here. I've followed a number of the guides for connecting to PowerBI REST APIs using a custom connector in Flow, and general...
- 6 years ago
Hi Anonymous ,
i found the solution.
To import a file, request Headers should include Content-Type: multipart/form-data with the file encoded as form data in the request body.
{ "$content-type": "multipart/form-data", "$multipart": [ { "body": @{body('Export_PBIX')} } ] }
mwegener
6 years agoMost Valuable Professional
Hi Anonymous ,
i found the solution.
To import a file, request Headers should include Content-Type: multipart/form-data with the file encoded as form data in the request body.
{
"$content-type": "multipart/form-data",
"$multipart": [
{
"body": @{body('Export_PBIX')}
}
]
}Anonymous
5 years agoNot applicable
Hey mwegener
This looks perfect, thank you. however, my connector is different to yours and isn't working, is there any chance you could share the details of your connector?
Thanks!
- mwegener5 years agoMost Valuable Professional
Hi Anonymous ,
I wrote a blog post about it.