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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
274188A
Advocate I
Advocate I

Defining a New Dataflow - using a restful API endpoint

I am creating a new Dataflow with the data source connector template "Blank query".  I'm using blank query because it the only option that allows me to use a security token. 

 

The motivation for trying to build a dataflow is that we now have more than one report using the exact-same-datasource and transformations.

 

The raw query I'm about to show you works perfectly in a non-dataflow context and has been in operation for over a year. 

 

here is the query (sensitive keys/data replaced)

 

 

 

let
  actualUrl = "https://some-endpoint.com/api/",
  record = [token="SOME-SECRET-TOKEN-VALUE",
    content="record",
    format="csv"
    ],
  body = Text.ToBinary(Uri.BuildQueryString(record)),
  options = [Headers =[#"Content-type"="application/x-www-form-urlencoded"], Content=body],
  result = Web.Contents(actualUrl, options),
  #"Imported as CSV" = Csv.Document(result, [Delimiter = ",", Encoding = 65001, QuoteStyle = QuoteStyle.Csv]),
  #"Promoted Headers" = Table.PromoteHeaders(#"Imported as CSV", [PromoteAllScalars = true])
 in
  #"Promoted Headers"

 

 

 Unfortunatley I can't get the dataflow to skip the authentication part (which is possible when not using a dataflow)

 

Does anyone know if dataflows are even possible if the datasource is a webapi using a token in the header?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @274188A , What we've done is create a gateway connection and set the Authentication as Anonymous. Map your dataflow to the connection.

 

wikkleyn_0-1667203837407.png

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @274188A , What we've done is create a gateway connection and set the Authentication as Anonymous. Map your dataflow to the connection.

 

wikkleyn_0-1667203837407.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors