Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi! I have my data gathered from an API where i needed to create two functions to be able to get all the data that ai need.
I have an function to get the data from the API and then in this results i have a field with a string to get the next page of results. So i have another function to perform the request using the "next_page" value and get the next page of results. In the end i sumarize everything into a list and then i have a table with all results sumarized.
My function where i use the "next_field" value to perform the next page requests receive an parameter with this value.
function to generate the list:
= List.Generate(
() => [offset = 0, listQtd = getItemNextPage("/api/v3/search/stories?query=created%3A2022-01-01..*+is%3Astory&page_size=25")],
each [offset] <= 727/25,
each [offset = [offset] + 1, listQtd = getItemNextPage([listQtd][next])]
)
function getItemNextPage where i use the "next_page" value
= (page as text) =>
let
Fonte = Json.Document(Web.Contents("https://api.something.com"&page, [Headers=[#"Content-Type"="application/json", #"Some-Token"="123-456"]]))
in
Fonte
Ok... so now i have my table populated with all the results that i need but i`m unable to schedule the update of that table...
I get this:
So is there a way to schedule this update ???
Hi @cccarv82 ,
I don't think it's possible to do that. Maybe you can try python script to do that. And only personal gateway support python script refresh.
Best Regards
Community Support Team _ chenwu zhu
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
62 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |