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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gopichilla
Resolver III
Resolver III

How to iterate page count for json

Hi All, I have JSON web links(1-15 pages) like https://company.teamwork.com/comments.json?page=1 https://company.teamwork.com/comments.json?page=2 . . . . In Furthermore, data will add on that time adding one more JSON file into my Power BI desktop. I don't want like that it will update automatically is there any presses or not. Thanks, Gopi

2 REPLIES 2
gopichilla
Resolver III
Resolver III

let
    Query1 = let
    Source = 
        List.Generate(
            ()=>Text.From([page=0]),
            each Text.From([page])<10000,
            each Text.From([page])=Text.From([page])+1000,
            each Json.Document(Web.Contents("https://company.teamwork.com/comments.json/rest/v10/Opportunities?OAuth-Token=2342423&max_num=1000&page="& Text.From([page])))
        ),
Page = Function.InvokeAfter(()=>GetPage(Accounts_List_To_Query), #duration(0,0,0, Delay))
  
in
    

I am using this code.

 

@gopichilla  any explanation for your solution? I don't understand what did you do

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.