Forum Discussion

SantoshKumar's avatar
SantoshKumar
Icon for Microsoft Employee rankMicrosoft Employee
4 years ago
Solved

How to refresh web Api when it has Header and Key values in the sources (web Link)

Hi All,

 

I have below content as my source:
Source =

Json.Document(

             Web.Contents(

                              "https://abcd.azurewebsites.net/api/CompatAPI/GetVSOItemsByQueryId?queryId=abcd-efgh-ijh",[Headers=[key="abcdefgh12345678"]])),

 

and i have checked the link "Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code Chris Webb's BI Blog (crossjoin.co.uk)"

 

but it does not provide any conditions related to my request which has queriId and Header with Key.

Can anyone provide any lead on how to change my source to make it error free to schedule refresh.

 

Regards

Santosh Kumar P

3 Replies