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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CEllis
Resolver I
Resolver I

CURL

I was woundering if anyone had experience in using Wonde api with dataflows ?

 

 

 

2 ACCEPTED SOLUTIONS

@lbendlin 

 

Thanks for the direction the problem I had was the authetication method.

 @mwoollen soloution below worked in the dataflow.

 

Not sure why but I had to use the token in the username and have a blank password for the refresh schedule to work which I though was odd.

 

let
  Username = "[your username]",
  Password = "[your password or TOKEN]",
  UserPass = Username & ":" & Password,
  Bytes = Text.ToBinary(UserPass),
  Base64_UserPass = Binary.ToText(Bytes, BinaryEncoding.Base64),
  TargetURL = "[target URL]",
//TargetURL = "https://companyxyz.atlassian.net/rest/api/latest/search",
  Source = Json.Document(Web.Contents(TargetURL,
  [
     Headers = [
      #"Authorization" = "Basic " & Base64_UserPass, 
      #"Content-Type" = "application/json"
     ]
  ]
  ))
in
  Source

 

Many thanks

 

Chris

 

View solution in original post

6 REPLIES 6
lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

In this example Wonde Integration with Power BI using the API | Power BI for Schools it shows a function called 'fGetStudents' and a query to call the function. This works and brings the records back.

 

However, when editing the data flow the connection has to be set to 'Anonymouse' for the code to work.

 

But when refreshing the dataflow it says 'Error: Credentials not found for data source'

 

 

see if this helps. Solved: Dataflows - Web API - authentication - Microsoft Fabric Community

 

Are you using Gen1 or Gen2 dataflows?

@lbendlin 

 

Thanks for the direction the problem I had was the authetication method.

 @mwoollen soloution below worked in the dataflow.

 

Not sure why but I had to use the token in the username and have a blank password for the refresh schedule to work which I though was odd.

 

let
  Username = "[your username]",
  Password = "[your password or TOKEN]",
  UserPass = Username & ":" & Password,
  Bytes = Text.ToBinary(UserPass),
  Base64_UserPass = Binary.ToText(Bytes, BinaryEncoding.Base64),
  TargetURL = "[target URL]",
//TargetURL = "https://companyxyz.atlassian.net/rest/api/latest/search",
  Source = Json.Document(Web.Contents(TargetURL,
  [
     Headers = [
      #"Authorization" = "Basic " & Base64_UserPass, 
      #"Content-Type" = "application/json"
     ]
  ]
  ))
in
  Source

 

Many thanks

 

Chris

 

Gen1

Make it work on the desktop and then see if you can transplant it to the dataflow.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors