Welcome to the new monday developer community
Discussions category for everything related to app development on top of monday.com
Recently active
I am using itemIds listener in my board view, as soon as i click on new task button, I get listener and in data I get itemIds, but one of the item id is ( -10 ), why am i getting such id, and is there any way of validating that a itemId is an actual valid item id, not any other number or string? or is there any way of removing that add task button from my board view. Example of itemIds listener data when clicked on add new task: [“itemId”, “anotherItemId”, …, -10 ] refer this image:
import requests import json class MondayClient: def __init__(self, api_key): self.api_url = "https://api.monday.com/v2" self.headers = {"Authorization": api_key} def make_request(self, query): data = json.dumps({'query': query}) response = requests.post(self.api_url, headers=self.headers, data=data) return response.json() def create_item(self, board_id, item_name): query = f''' mutation {{ create_item (board_id: {board_id}, item_name: "{item_name}") {{ id }} }} ''' return self.make_request(query) def change_item_name(self, board_id, item_id, new_name): query = f''' mutation {{ change_column_value (board_id: {board_id}, item_id: {item_id}, column_id: "name", value: "{{\\\\"text\\\\": \\\\"{new_name}\\\\"}}") {{ id }} }} ''' return self.make_request(query) # Add more methods as need
Hi, I’m on migration of a lot of powerby using API Monday.com. And during my debugging and query’s rebuild (thanks a lot @hbouk ) i see that board_relation send data only if a query param is parsed. I have the same result with api playground Blockquote boards(ids:xxxxx) { items_page(limit: 100 query_params: {rules: [{column_id: “board_relation”, compare_value: , operator:is_not_empty}]} ) { cursor items { id name updated_at group { title } column_values { id text … on StatusValue { text } … on MirrorValue { display_value } … on FormulaValue { value } … on BoardRelationValue { display_value } column { title type } Result : “id”: “board_relation”, “text”: null, “display_value”: “12E4S2XD08 : CZ - ThinkCentre M70q Wifi - Gen3 (OS:Win)”, “column”: { “title”: “link to Subitems of JMS_Commande”, “type”: “board_relation” } }, { “id”: “mirror”, “text”: null, “display_value”: “WSEM00VA4H”, “column”: { “title”: “Mirror”, “type”: “mirror” } but if i query without qu
Hello everyone, I’ve recently joined Monday.com dev community, and I cannot figure out one important issue: In order to use SDK I need to initialize access token through mapps init command So, I’ve tried multiple options (local/global/with different access rights), and always getting the same log: INFO: ‘.mappsrc’ created (by the way with -l key .mappsrc is even automatically added to .gitignore) But the problem is, I don’t see the ‘.mappsrc’ file anywhere, as well as as soon as I try to use any feature (i.e. tunnel), I’m getting this error: Access token is missing, please run: “mapps init” What could be the issue? SDK added globally, as well as added to the project itself. Tried with template app as well as with react/next apps - same story all the time Dependencies: “@mondaycom/apps-sdk”: “^2.0.0” Also, to avoid asking another question, will ask here: The only why I need SDK, is to try to fetch the request details which board user is currently selected. Is it possible? App is a board
I’ve found that a duplicated board creates the groups within the duplicate with the same group Id’s. When querying both boards it can’t tell the difference between the groups due to identical ID’s. I just find it odd that the ID’s are identical when typically an ID is unique. Has anyone else run into this? I’m relatively new working with this API, so forgive me if I’m missing something obvious.
Hi, We are observing complexity issue with board graphQL api with minimal response properties and a limit of 10 records only. Is this an expected behavior?
Hello, I am trying to use the create_item webhook in my code. I have set up webhook validation and am successfully receiving the webhook payload. However, the problem arises as soon as I click on New Item to create an item on the board; the webhook gets triggered, but it provides empty columnValues . This is webhook payload I’m recieving. { "event": { "app": "monday", "type": "create_pulse", "triggerTime": "2024-01-07T05:37:32.618Z", "subscriptionId": 3189290, "userId": 53812717, "originalTriggerUuid": null, "boardId": 18356535, "pulseId": 1836594, "pulseName": "hello", "groupId": "topics", "groupName": "Group Title", "groupColor": "#579bfc", "isTopGroup": true, "columnValues": {}, "triggerUuid": "ksjjshosajsosasnas" // } } Is there any way after I fill every column value then only create_item event will trigger? I want column values of newly created item. Thanks.
Hi, Predefine column values for a customer into a column. So when they click a button, values from that column are used to generate an action. I.e. status column with “run test 1” “run test2” Any way to add this to custom features?
Hi , When I try to export subitems data along with board and group details , I am getting below error message. If I skip group or sub item info then I am getting results. Can you please let me know workaround for this one. Query has depth of 7, which exceeds max depth of 6. { boards(ids: 123) { id name groups{ id title items_page(limit: 50) { cursor items { id name subitems{ id name column_values { column { title } text value } } column_values { column { title } text value } } } } } } Thanks & Regards, Madhu Kolli
Hi, I need a query in which I can filter items by multiple dates. By example, I have an array of dates and I want to retrieve items where the column date4 is exactly that date. Because of that the trick with using between operator doesn’t work. As far as I know there are two queries for filtering items by column dates. Unfortunately non of them work properly. items_page_by_column_values. When I use this query the API returns only the first item. See example below: query { items_page_by_column_values ( board_id: 5600134463, columns: [ {column_id: "date4", column_values: ["2022-11-01", "2023-11-30", "2023-11-05"]} ], limit: 100 ) { cursor items { id name updated_at column_values(ids: ["date4"]) { id value text type } } cursor } } In my test board I have 3 items that have above listed dates (["2022-11-01", "2023-11-30", "2023-11-05"]) inside the d
Hello , I have very simple code using monday javascript sdk as below. import mondaySdk from "monday-sdk-js"; const token ="mytoken"; const client = mondaySdk(); client.setToken(token); client.setApiVersion("2023-10"); const res = await client.api( ` query listGroups($boardId:ID!) { boards(ids : [$boardId]) { groups{ id title } } }`, { boardId: "1835515014" } ); console.log(res) But i’m keep getting this error saying invalid value. { errors: [ { message: 'Variable $boardId of type ID! was provided invalid value', locations: [Array], extensions: [Object] } ], account_id: 20529253 } EDIT : I tested same graphql query using postman, it’s working fine there. If anyone can help me with this? Thanks.
Hi, Happy to discover Monday’s developpers community. I faced some issues on my firsts queries and i need your help. When i launch this query : “query { items_by_column_values (board_id: 508611278, column_id: “date”, column_value: “2019-02-06”) { id name } }” I received a warning “Replaced by Query.items_page_by_column_values since 2023-10”. But, when i tried the new one, i also received an error (I just copy an past the documentation sample (?)) : “query { items_page_by_column_values (limit: 50, board_id: 508611278, columns: [{column_id: “text”, column_values: [“This is a text column”]}, {column_id: “country”, column_values: [“US”, “IL”]}]) { cursor items { id name } } }” Error : { “errors”: [ { “message”: “Field ‘items_page_by_column_values’ doesn’t exist on type ‘Query’”, “locations”: [ { “line”: 2, “column”: 3 } ], “path”: [ “query”, “items_page_by_column_values” ], “extensions”: { “code”: “undefinedField”, “typeName”: “Query”, “fieldName”: “items_page_by_column_values” } } ], } Do
Hi, I’m using the query documented here to get items from a board that has a specific board_relation to another one. The following query: query_params: {rules: [{column_id: \\"connect_boards\\", compare_value: [\\"test123\\"], operator:contains_text}]} will try to get items by item name (i.e. items named “test123”). The problem is that this value is not unique and can be easily changed on the frontend. How can I get this same relation, but using the item id as the parameter?
We are using the monday API endpoint https://api.monday.com/v2 which is currently working fine without the breaking changes mentioned in new version 2023-10. However, when I implement the changes required for 2023-10, the query works fine from the playground on the monday.com developer center, however produces an error when I attempt to run the same query from Postman or from my web application. For example, one of the required changes is to use items_page for nesting group level items , whereas previously it was just items attribute under groups. But the error received when using items_page is as follows : “errors”: [ { “message”: “Field ‘items_page’ doesn’t exist on type ‘Group’”, “locations”: [ { “line”: 15, “column”: 7 } ], “path”: [ “query”, “boards”, “groups”, “items_page” ], “extensions”: { “code”: “undefinedField”, “typeName”: “Group”, “fieldName”: “items_page” } } ], The query request body being sent in the request is as follows : query { boards(ids: [414373342]) { id nam
Hello. I’m reading the following documentation: Getting started with monday code And I’m stuck on mapps code:push. I receive this message when I try to push my code to the Monday account: There was an error building IaC. (addbee8d-29d2-49de-b01f-44b1164b166a) Is there any other step I forgot? Could you guys help me on this? Thank you!
Hey, I would appreciate help regarding 2 API calls I want to make: Retrieving items within a certain date range to a certain board, For example, I want all the items from 01.12.23 to 31.12.23, how do I write it? { “query”: “{ boards (ids: XXXXXXXXXX) { items_page (limit: 100) { cursor items { id name } } } }” } Is it possible to retrieve all the items in a certain date range independently of the board? That is, I want to receive all the items from 01.12.23 to 31.12.23 for all the boards in my account.
Hi, I migrated my monday with the app “Tracket - timesheet”. i added some time logs and now i want to send a request via postman to see it. how can i do it? how can i make a board from this 3rd app? thanks!
Hi, I’m building a new Integration App that has a action that activated by automation. Similar to the Slack integration recipe, I would like to allow the user to input a custom message with the option to auto-populate Item properties. For example, For this example, on my server, I got only the ID of the dropdown option which is “{pulse.dropdown8}” and not its value. How can I get the value in this scenario? Thanks!
TLDR (By Chat GPT): I’m looking for advice about using the Monday API to run software subscriptions. Its unconventional data structure and recent breaking changes raise concerns about long-term stability and frequent updates. While Monday’s front-end would benefit our Ops and Sales teams, we worry about the service’s pace of change. We aim to avoid recurring disruptions to our licensing feature. Guidance on the API’s reliability and its potential impact on our operations would be invaluable. Hello everyone, I’m considering using the Monday API to manage software subscriptions for Applications that my company develops and sells access to. I write seeking strategic advice more than technical instructions. Ideally, I’d also like to connect with a Monday product owner who’s interested in this use case, willing to vet it, and available for support or questions. I’m a Director of Product and Technology at a small VR Training startup. While I’m relatively new to Monday, our team relies on it
With API 2023-10, the column types have changed to an enum, with changed values. When you have a custom field for remote options, and the dependency is the “Column” of a trigger like “when column changes” it sends the following structure: "dependencyData": { "boardId": 123324234, "columnId": { "boardId": 123324234, "columnId": "status", "columnType": "color", "invalid": false } } (ignore that the field is called columnId - thats a side effect this field having been intended originally to use an action column field and not a trigger output column field. ) Note the “columnType” being sent is using the OLD string values, and not the modern enum. I’ve written a preprocessor function for my parser (Zod) to solve this (it just takes in the original value and returns the modern value), but I’d say this is something that needs to get addressed, at least a
I’m looking to see if there is a way to import data into Monday directly from Azure. Is this possible or am I stuck with doing it manually via Excel? I must be searching the wrong thing…
When creating a View feature (e.g. a board view), there are two options for hosting the html/js assets: (1) in my own iframe, or (2) uploading assets in a ZIP file. The first option is fine, but in the second option the assets are hosted at https://64391103c33a0ba5.cdn2.monday.app/index.html or something similar. To make a cross-domain request (to my own app’s backend), I need to whitelist 64391103c33a0ba5.cdn2.monday.app on my backend as an allowed CORS origin. (Due to your iframe’s policy that cross-origin needs to be strict and not *) That can work, but I haven’t been able to find out whether we should expect that URL to be consistent indefinitely. Will the URL remain the same across all users, app versions etc, going forward? Or should we expect variations in any part of it, e.g. is there a cdn3 server that might serve these assets etc?
hi i’m runnung query query{ boards (ids:2724446259) { items_page (limit: 100){ cursor items { id name column_values { id value } } } } } receining response with cursor key and then running second_query: query{ next_items_page (limit:100, cursor: “MSwyNzI0NDQ2MjU5LHlWRll4VFk1UEpXQXdEQngwM3FTSCwyMzMsMTAwLHwyMzAxNzkxMjkw”){ cursor items { id name column_values { id value } } } } second query enter into infinity loop i’m receiving always same response its a dead loop when number of items more than 2 pages even on small page 10 items total first query limit = 1 next query item = 1 response looped
so im using the monday api in my code and im trying to add new items to a board, well the item gets added but the other fields are empty const mondaySdk = require("monday-sdk-js"); const mondayApiKey = require("./apiKeys"); const monday = mondaySdk(); monday.setToken(mondayApiKey); const userData = { Email: "lol@lol.com", level: {label: "Pro"}, }; const encodedUserData = JSON.stringify(userData).replace(/"/g, "\\\\\\""); const mutation = ` mutation { create_item ( board_id: 12345, item_name: "New Item", column_values: "${encodedUserData}") { id } } `; monday .api(mutation) .then((response) => res.send({response, encodedUserData})) .catch((error) => { console.error(error); res.send(error); });
I want to upload file throw Monday.com API graphql. I am using dart and building Flutter App. I am stuck on uploading files (images) throw API. Can you help me, with providing codebase or anything. Future<void> _pickImage(String imageType) async { html.FileUploadInputElement uploadInput = html.FileUploadInputElement(); uploadInput.click(); uploadInput.onChange.listen((e) { final files = uploadInput.files; if (files!.isEmpty) return; final file = files.first; final reader = html.FileReader(); reader.readAsDataUrl(file); reader.onLoadEnd.listen((e) { setState(() { _images[imageType] = reader.result as String?; }); }); }); } Widget _buildImageField(String label, String imageType) { return Column( children: [ Text(label), SizedBox(height: 10), _images[imageType] != null ? Image.network(_images[imageType]!) : Text('No image selected.'),
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.