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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Richard_Halsall
Helper IV
Helper IV

Monday.com API and pagination

Hi,
 
Hoping somebody can help as I am sruggling with the Monday.com API and pagination. After research I have 2 queries 
 
GetBoardPages:
(PageNo as number) =>
let
    Key = MondayKey,
    Board = id_board,
    Source = Web.Contents(
MondayBaseURL,
 
[ RelativePath = "v2",
Headers=[
#"Method"="POST",
#"Content-Type"="application/json",
#"Authorization"="Bearer " & Key
],
Content=Text.ToBinary("{""query"": ""query { boards(ids: " & Board & ") { items (limit:10, page: Number.ToText (PageNo)) { name, updated_at, group { title }, columns: column_values { title, text } } } }""}")
]
    )
in
Source
 
Query 2:
let 
    Records = List.Generate(()=> 
            [Source = GetBoardPages(1), Page=1],
            each List.Count([Source][Monday]) > 0,
            each [Source = GetBoardPages([Page]+1), Page=[Page] +1],
            each [Source])
in
    Records
 
But Query 2 errors I believe at the List.Count line as follows:
 
Expression.Error: We cannot apply field access to the type Binary.
Details:
    Value=[Binary]
    Key=Monday
 
Can anybody help. Many thanks
1 ACCEPTED SOLUTION
dk_dk
Super User
Super User

Hi Richard,

I am struggling with Monday.com API as well and do not really know the answer to your question, just wanted to make you aware that the API will introduce breaking changes from January 1st and you will anyway need to re-write this query to keep it working. So I would suggest that you try to make your query and pagination work properly with the new API version. You can pass an argument in the headers to use the stable 2023-10 version, you will see that you will have more errors.

Here are the links that talk about the API changes and how to migrate:

https://community.monday.com/t/api-version-2023-10-is-stable-remember-to-migrate-your-applications/6...

https://developer.monday.com/api-reference/docs/migrating-to-v-2023-10




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
dk_dk
Super User
Super User

Hi Richard,

I am struggling with Monday.com API as well and do not really know the answer to your question, just wanted to make you aware that the API will introduce breaking changes from January 1st and you will anyway need to re-write this query to keep it working. So I would suggest that you try to make your query and pagination work properly with the new API version. You can pass an argument in the headers to use the stable 2023-10 version, you will see that you will have more errors.

Here are the links that talk about the API changes and how to migrate:

https://community.monday.com/t/api-version-2023-10-is-stable-remember-to-migrate-your-applications/6...

https://developer.monday.com/api-reference/docs/migrating-to-v-2023-10




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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