Forum Discussion
YogeshP
6 years agoNew Member
Power BI Service - scheduled refresh failure when using Azure DevOps API
I have connected my Power BI report to the Azure DevOps data, using AzureDevOps connector (beta). Since this doesn't support the multi line text field data under it's data set, I have referred this d...
- Anonymous6 years ago
HI YogeshP ,
Maybe you can take a look at the below document to use VSTS.AccountContents to instead web.connect:
Connect using Power Query and Azure DevOps functions
Regards,
Xiaoxin Sheng
Anonymous
6 years agoNot applicable
Hi YogeshP ,
I'd like to suggest you enable 'relative path' optional parameter to split URL to root path and relative path and add your authority credentials in the header.
Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code
For example:
let
Source = Json.Document(Web.Contents("https://[instance-name].visualstudio.com/", [Headers=[Authorization="Basic " & Credentials],RelativePath="DefaultCollection/[project-name]/_apis/wit/wiql/[query-guid]"]))
in
Source
After these, you can use anonymous mode to refresh your report from web API.
Regards,
Xiaoxin Sheng