Welcome to the new monday developer community
-
Recently active
Hello, Is it possible using the monday API to add boards into a dashboard like the webapp (image). I see nothing about dashboards in the api doc. Thanks.
So I believe multi-operation documents are a thing in GraphQL, i.e. you can select one using an operation name. When I do this I get an error response: “An operation name is required”; but I supplied the operation name. So in the developer’s playground I created a document with 2 queries: query SingleBoard { boards(limit:1) { name columns { title id type } groups { title id } items { name group { id } column_values { id value text } } } } query AllBoards { boards(limit:10) { name } } Sure enough, even though I have a drop-down under the play button in the developer’s playground that allows me to select which query I want, I get “An operation name is required” error regardless of which query I pick. Is this a limitation of the Monday API?
I cannot find a way to edit multiple-person using API. I used both ways to mutate record (IDs and JSON) from documentation: https://api.developer.monday.com/docs/people without success. New records work fine, people value is added. Can someone help me?
I am trying to get all users from monday using the API v2. This query below displays all users with the details specified on the query: query { users{ id name email } } So now I’m trying the below request from a python script: headers = {"Authorization" : config['api_key']} apiUrl = "https://api.monday.com/v2" query = {"query": "users { id email }"} res = r.post(url=apiUrl, json=query, headers=headers) res_data = res.json() I ma getting the following error: {'errors': [{'message': 'Parse error on "users" (IDENTIFIER) at [1, 1]', 'locations': [{'line': 1, 'column': 1}]}], 'account_id': 9415663} Please help, what am I doing wrong?
I’m having trouble at the first step. This library needs the schema available at compile time. I downloaded the schema and saved it to disk, it starts: { "account_id": 6188811, "data": { "__schema": { "directives": [ … When I try to compile my project, it rejects the schema: error: Failed to generate GraphQLQuery impl: Parser error: schema parse error: Parse error at 1:1 Unexpected `{[Punctuator]` Expected `schema`, `extend`, `scalar`, `type`, `interface`, `union`, `enum`, `input` or `directive` It looks like graphql_client is rejecting the schema right from the first {, so I’m wondering if anyone else has successfully accessed Monday from rust code.
Normally to calculate a weekending date I would use the formula as follows: Friday = Daynum 6 of the week Today() + 6 – WeekDayNum( Today() ) If today = Tuesday 04.05.2022 Today() + 6 = 04.11.2022 WeekDayNum( Today() ) = 3 04.11.2022 – 3 = 04.08.2022 Is there a way to calculate this in Monday now? I can’t find a WeekDayNum function.
On Monday dashboard, we can clearly see values in CM Column but we are getting null value in API. Link: https://northern-accountants.monday.com/boards/1831612862/ We are using below GraphQL query to fetch data: { to_be_start : boards(ids: 1831612862) { groups(ids: "new_group81176") { ...boardFields } } } fragment boardFields on Group { items { column_values(ids: ["mirror26"]) { text } } } Same issue exists with “formula_1” column in below link. Link: https://northern-accountants.monday.com/boards/632285673 We are using below GraphQL query to fetch data: { iyep_awaiting_further_client_info : boards(ids: 1831612862) { groups(ids: "new_group1835") { ...boardFields } } } fragment boardFields on Group { items { column_values(ids: ["date7","formula_1"]) { text } } }
Hi, May you please assist, I have aboard where I am able to create Items using the API and python, I am now at a stage where I want to assign an Item to a user so that through permissions a user can only see Items assigned to them, How can I achieve that through the API?
Hello, I am having an issue where I cannot select any board data to test my monday.com item view app with in the widget preview. When trying to select an item, I can see the available boards and select one, but then no items are found on the board. When I try to search for an item that I know exists, I get no results found with the option to create a new item, When I try to create a new item, I get infinite loading, not really sure what is wrong here, but was hoping someone could help me out. Note: I am owner on the boards I attempted this with.
I’m running a query that pulls an entire board which contains about 400 items and 80 columns. i’m using a pretty blunt query: query2 = ‘{boards(ids:###) { name items { name group{title} created_at column_values{ title text } } } }’ It takes about 20 seconds for this to run, which is surprising given that this is just tabular text data. Is this normal latency? I would expect a much faster response on this (maybe 1s). I’ve seen a few (unaddressed) threads about performance of the API - is this an ongoing issue? Thank you
Hey all. I’ve been playing with the Monday API and have made a lot of progress towards getting it ready to be available in our system and a couple of other tools we use, however, I’ve hit a bit of a snag when it comes to adding files. I’ve been able to do everything else from adding items, updates, columns, boards and reading what I’ve needed, but adding files is what has finally broken me. I’m basing my code off of Uploading a file to monday.com, the hard way. The author is using NodeJS so I’ve tried to convert it as best I can. My code below: <cfset dataQuery = 'mutation($file:File!){add_file_to_column(file:$file,item_id:123456789,column_ID:"files"){id}}'> <cfset boundary = "xxxxxxxxxx"> <cfset upfile = "image1.png"> <cfset base64Sample = SAMPLE_BASE64_STRING> <cfset data = ""> <!--- Construct Query ---> <cfset data &= "--" & boundary & ""> <cfset data &= 'Content-Disposition: form-data; name="query";'> <cfset data
Hi all, please help if you can When making an API request call, we seem to have random data points not being brought through. If it was a whole row or column, we could try to find some sort of rule, but this is purely random. The boards in question are slightly complex in that they use Connected Columns, but I don’t see why that would be an issue. We’ve tried exporting the boards manually to Excel using the UI, and we are still missing some data points, not as many as with the API call, but still some. Is there anybody else who has experienced this or knows how to fix it? Best regards,
I have successfully built an app running on my local machine and using the loca.it tunnel. How do I now deploy this on to AWS as a Lamda function or Heroku etc?
Hi, Is there any way to search for items between range of dates while I have one date column in the board? Quite urgent 🙂 Many Thanks,
In the API Playground I can change a text column value for an item using: mutation{change_simple_column_value (board_id: XXXXXXXXXX, item_id: YYYYYYYYYY, column_id: "text", value: "NEW" ){id}} But when I replace the item_id with the id of a subitem I get: { "error_code": "ResourceNotFoundException", "status_code": 404, "error_message": "Item not found in board", "error_data": { "resource_type": "item", ... "error_reason": null } } I can’t find any reference to changing subitem values in the documentation, only (parent) item values. Do I need to pass a parent_id as well or…?
Hello, I started to learn how your API works and everything was fine until I tried to create a new column in a board. I quite litterally copy / pasted the code I found in the doc, put my board ID and my API Key. changed nothing else just to see if it was working but I got this message : “message”: “Parse error on "create_column" (IDENTIFIER) at [1, 1]” here is my code : let query = "create_column(board_id: "+boardID+", title:\\"Work Status\\", description:\\"This is my work status column\\", column_type:text){id}}" fetch ("https://api.monday.com/v2", { method: 'post', headers: { 'Content-Type': 'application/json', 'Authorization' : apikey }, body: JSON.stringify({ 'query' : query }) }) .then(res => res.json()) .then(res => console.log(JSON.stringify(res, null, 2))); } Do you know why this occurs ? Thank you and have a nice day 🙂
Is there any way to create user (person) using GraphQL? Currently I see only read-only query: https://api.developer.monday.com/docs/users-queries-1 Also, here https://api.developer.monday.com/docs/people is noted that I should use ID to set person to item value. So, how should I populate new users with name/email? Thanks for help.
Hello, when creating custom actions it looks like only the only option is for a POST request/webhook to be sent somewhere. Is it possible to instead have it trigger something in a custom app? Example… I have a board with items. I have a button field on this board. I have a custom app with an item view added for this board. When I click the button, open our app’s item view and send a message to it (ideally the same thing you’d send via the webhook) Then we can handle the message and do whatever we need to in the app. Is this possible or are webhooks the only way to work with custom actions currently? Thank you!
Hi, I am using the graphql API and I am facing an issue regarding security. I am using the API token linked to an account but I would like to restrict the access to some boards in a workspace. It seems to be something possible as mentioned in the documentation, but I cannot see anywhere an option to change the permissions of an account on some workspace’s boards. Did I miss something in the documentation? Thanks!
Hi there, Can anyone tell me what is wrong with my payload? I keep getting a 500 error back, which from my reading on the board, signifies a malformed request. I am not using Node.js or similar back end software. I am using an ETL software that allows for web requests. So I am really trying to find out what the issue is in terms of the structure of the request rather than the code that makes the request like I have seen in other posts. In the response back I have removed the urls for the content-security-policy because I am limited to a max of 20 urls in a post. Additionally, the beginning of the auhtorization key is x’d out. The key itself is fine. I just didn’t want to post it in the forum. Please assume there is no issue with the authorization key. If anyone could give me some pointers, I would be appreciative. Thanks! Payload: POST https://api.monday.com/v2/ Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxNTo
Hello, I made an integration recipe that triggers on status column changes Is there any way to exclude subitems from the recipe ? Thank you in advanced.
Hi, The widgets in the screenshot are added in the Doc. “Custom Calendar Widget” is our own custom developed widget, I can’t seem to find a way to enable the “Filter” feature in the widget (like the filter shown in Battery Widget), can you please advise on this?g-company.monday.com Thanks! Br YarHuoy
Can anyone recommend any Javascript Library or other tools for rendering the output of a GraphQL query? I realize that the map() and flatten() methods in Javascript can be helpful for transforming the JSON output of GraphQL into a table. But that can get a bit complex particularly when there are nested data structures and blank elements. Is there some existing tool or library which helps with this?
Is there any way to retrieve an Item Link (i.e. the URL to a given row) using the API?
I am trying to execute an API v2 query using Postman as discussed in this excellent video (see 42:30):
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.