Forum Discussion
Anonymous
5 years agoNot applicable
Uploading Paginated reports files by Powershell cmdlet or API
Hello Guys I tried uploading paginated reports by powershell but I haven't find the right command to do it, I've used the following lines to upload datasets and reports but it doesnt work for upload...
lbendlin
5 years agoSuper User
If anything else fails you can always use the Invoke-RestMethod calls
$uri = “https://api.powerbi.com/v1.0/myorg/groups/{groupId}/imports?datasetDisplayName={datasetDisplayName}”
# issue the upload request
$FileUpload = Invoke-RestMethod -Uri $uri –Headers $authHeader –Method POST -body $body
etc.