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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
BI_Analyticz
Helper V
Helper V

Need help with pagination for GraphQL integration to Power BI

Hi Guys, I am pretty new to GraphQL API integration to Power BI. 

 

I read an article Connect Power BI to the Dimension Four API | Dimension Four and able to use my GraphQL code perfectly. (I used Template 2 from this link). But there is a pagination issue in my API. My initial call will retrieve only first 200 rows. I have to include pagination in my M code to retrieve all the rows from the API call. I desperately need your help since I have no clue on how to achieve this in M.

 

let
url = "https://iot.dimensionfour.io/graph",
tenant_id = "your-tenant-id-here",
tenant_key = "your-tenant-key-here",

GraphQL_Query = "{""query"":""

{
points{
id
name
}
}

""}",

Query_SingleLine = Text.Clean(GraphQL_Query),

Source = Web.Contents(
url,
[
Headers=[
#"Method"="POST",
#"Content-Type"="application/json",
#"x-tenant-id"=client_id,
#"x-tenant-key"=client_secret

],

Content=Text.ToBinary(Query_SingleLine)

]
),

#"JSON" = Json.Document(Source)
in
JSON
2 REPLIES 2
Anonymous
Not applicable

Any luck here? I'm new to GraphQL but kind of figured Power BI just isn't going to play well with tools like Power BI. Would love to hear otherwise.

amitchandak
Super User
Super User

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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