Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • mwegener's avatar
    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')}
        }
      ]
    }