Forum Discussion
ep513140
2 years agoFrequent Visitor
Power BI API integration with Unity
I am trying to use a PowerBI API which saves Unity data. I have scoured the internet and I think it might be due to the PowerBI API permissions and not Unity. In order for Unity to write data to the...
lbendlin
2 years agoSuper User
Not clear to me what you are trying to accomplish. Are you attempting to push rows into a streaming dataset?
- ep5131402 years agoFrequent Visitor
Yes, I am trying to push data from Unity into a streaming data set so that there is a new row in the streaming dataset. In the code above I have hard coded the data to have "Experience" = 3 and "Confidence"= 5 which is what I would like the row to display after the Unity Web Request completes. However, I either get a 500 Internal Server Error or a 404 error.
- lbendlin2 years agoSuper User
To push rows into a streaming dataset you need to add the push key to the URL.
$endpoint = "https://api.powerbi.com/beta/<tenant id>/datasets/<dataset id>/rows?key=<push key>"
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))