Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dhanu3
New Member

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 2
ThxAlot
Super User
Super User

Web.Contents - PowerQuery M | Microsoft Learn

 

Usually, key value isn't explicitly put in query, just the name of the API key.



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Hi @ThxAlot for the response but Sorry, I don't get what you mean. , this product (loggly) has an API token generator https://documentation.solarwinds.com/en/success_center/loggly/content/admin/token-based-api-authenti... only, so by adding 

[Authorization="bearer mytoken"

I was able to pull the data from the product, but what I want is to hide this mytoken .

 

Any suggestions to hide this token in the query window? or different ways to do the data source connection? 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors