Forum Discussion
anonymous2
4 years agoHelper II
Post Import in Power BI REST API
Hi, I would like to try using the Post Import from this documentation, https://docs.microsoft.com/en-us/rest/api/power-bi/imports/post-import to import an excel file or JSON file to Power BI Service ...
lbendlin
4 years agoSuper User
The authheader contains the bearer token and the Content-type. My understanding is that "connect" leaves the aexcel file on the SharePoint and creates a reference. Similar to Direct Query. And no, I wasn't successful yet. The only documentation I could find is from 2015 when the API was still in beta.
- anonymous24 years agoHelper II
Hi lbendlin, I used the access token and received this error.
Invoke-RestMethod : Specified value has invalid CRLF characters. Parameter name: value At C:\Users\LENOVO\Documents\powerbi.ps1:23 char:1 + Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups/816 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], ArgumentException + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand