Hi there,
I am brand new to using the API, I also have a limited understanding about API's in general.
I have created a simple VBA (Excel) code that pushes data into a streaming dataset using the API.
I have now created a simple Report that is linked to that dataset.
All the above works fine. I would like like to trigger a refresh of the content on the Report page instead of clicking the button "Refresh", is this possible?
I have tried the following:
Function RefreshPowerBIReportPage() Dim objHTTP As Object Dim JsonDt As String Dim sReportKey As String Dim sGroupKey As String sReportKey = "" sGroupKey = "" Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1") URL = "https://api.powerbi.com/beta/myorg/groups/" & sGroupKey & "/reports/" & sReportKey & "/UpdateReportContent" objHTTP.Open "POST", URL, False objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" objHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded" objHTTP.send End Function