Wora2024
(Wora2024)
February 6, 2024, 4:32am
1
Hi.
I improved the souce code from Guilherme Chaguri to add a Recursive Function to get all the data from the Monday board via API 2024-01.
I use this function for my work. and are happy to share it for everyone to use.
Download this function code from my post in Guichaguri’s Github.
monday.m
// Queries Monday.com items from a specific board. Limits to 500 items.
// Tested in API version 2024-01
// Created by Guilherme Chaguri
// Replace the API Key and Board ID for it to work
// In Power BI: "Get Data" -> "Blank Query" -> Right click the "Query" in the left panel and open the "Advanced Editor" -> Paste this code
let
Key = "YOUR MONDAY API KEY",
Board = "YOUR MONDAY BOARD ID NUMBER",
Source = Web.Contents(
This file has been truncated. show original
Thank you for sharing your script!
JoshK
(Josh)
February 7, 2024, 4:49pm
4
HI Wora2024, is there a reason it it limited to 500 items? I had tried to increase it but it wont let me, do you know how to increase?
500 items is the maximum number of items the monday.com API can return from a board in a single API call.
2 Likes
cgl775
(Craig Lynch)
February 28, 2024, 4:45am
7
How can this code be updated to account for expiring cursors? I’ve been using this for about a month but now am getting the following error, and I can’t figure out how to fix it: error_message=CursorExpiredError: The cursor provided for pagination has expired. Please refresh your query and obtain a new cursor to continue fetching items
Hello there @cgl775 and welcome to the community!
Would you be able to please fill this form so our team can take a look into this? Please add as much detail about your case as possible.
Looking forward to hearing from you via the form!
Cheers,
Matias
rhiannec
(Rhianne)
March 1, 2024, 3:33am
9
Hello I used this script unfortunately I encountered an error stating
Expression.Error: There weren’t enough elements in the enumeration to complete the operation.
Details:
[List]
Wondering if you guys can help? Is this a problem with API or what could this be?
Hello there @rhiannec and welcome to the community!
That error message does not look like an issue with the API. It looks like an issue with the script. Since we did not create this script, I can not comment on it.
Cheers,
Matias