Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Power BI - How to hide the API token from dataset?

Hi,

 

My dataset query in the advanced editor window looks like the following

let

iterations = 20,
  url= "url",
   FnGetOnePage = 
   (url) as record =>
let
 
 Response = Json.Document(Web.Contents(
     "https://client.product.com",
    [
         RelativePath = url, 
         Headers = [Authorization="bearer mytoken"]
       ]
   )),

 

and I want to hide mytoken from this dataset , how can I do it?

Thanks!

2 Replies