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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.