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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
phyten
Helper I
Helper I

dynamic rest api calls on demand

I am trying to get a dynamic, on demand rest api call.

 

my call looks like https://jira.foo.com/bar/rest/api/isses/key?expand=bla,blub
This api call should be called on demand where the only thing that would change is the key. (loading all the data would take forever)

 

So for example:
I am importing basic data via excel import and after filtering through my data I see an entry that I am interested in.
Now I  am able to enter the key or just click on the entry (the key is present in a column within the currently loaded data) and powerbi starts the query and the queried data is shown withing a visualization.

 

EDIT: I managed to create a function which queries the data that I want and processes it the way I want. Though I still need to go into the query editor in order to call the function or change the parameter with EditQueries -> EditParameters and enter the key by hand. Is there a way to just Click the wanted key/dataset within a table for example.

2 REPLIES 2
Anonymous
Not applicable

Hi  @phyten,

 

You can write a custom function to call the api, for example:

 

let 
    CallAPI = (URL as text, token as text) as any =>
let
    Source = Web.Contents(URL, [Query=[], Headers=[#"APIToken" = token]])
in
    Source
in
    CallAPI

 

 

Notice, custom function only work on desktop side.

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

I think your only option just now is copy-pasting the key to a Query Parameter that is used in your REST call and then refreshing your data.

 

You can link a parameter to a Query - if you only have a small number of keys to choose from, you can make the keys appear in a selection list for the Query Parameter.

 

Alternately, can you bring in all the related data to Power BI up front, then filter via a slicer?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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