Hello,
I am working with a firm where I am working on the different CRMs for data sync process from different ERPs. and for that approach, we have developed the backend routines using API for the respective CRMs. I have just started with the Monday CRM, and I am done with the Oath process using the backend Api call. I am still looking for the Apis for all standard object’s Apis. by using those Apis, we can create/update different standard object records to the CRM. Kindly help me with this.
It is a GraphQL API , not REST. There aren’t individual endpoints for each object type.
Using GraphQL API, Can’t We create/update the accounts?
monday.com is very generic, what you see in the CRM product is built on the monday.com generic platform (with some special UI things). The CRM is an implementation of a CRM on monday.com, it is not something specifically a CRM.
In the CRM, the accounts are just “items” on boards. Every row you see on a board regardless of what the row represents is an “item” in monday.com. Boards have a “terminology” setting that controls what Items are called on that board such as an account, client, contact, deal, lead, etc.
The API works with the underlying items, boards, columns, groups, etc. directly - not what they are called in the UI
Using the API, a board is a collection of items, simple as that. There are no “account” objects. Just “items” representing accounts on the board that has been configured to call items “accounts” (of which there could be many boards this way!). Each board has “columns”, which are again flexible, not “first name” “last name” “phone number” entities. Columns have types (text, phone, number, etc.) for the kind of data they hold, but you access that data through the “column_values” field on an item, which returns values, along with the type. You can query for specific columns, and update specific columns.
In the API, look at the items objects, and creating them. You specify the board id for accounts you want to create them on. (or any other board for that matter, its all the same)
In the board for example, this is how the “terminology” gets changed.
Ok got It.
I have started with the GraphQL playground.
I just want to know that how We can fetch the linked items.
I just want to check some of the examples on it.
Kindly help me with this.
I would start with this query which will return the first 50 boards, and the boards columns. It will also include the board ID and board name.
{
boards (limit: 50){
id
name
columns {
id
title
}
}
}
Then you can use the below, with one of the board IDs returned from the above. This will return the first 100 items of the board, along with their ID and name. It will also return the column values, with the column ID, type and text value of the column.
{
boards (ids: "123324234" ){
id
name
items_page(limit: 100){
items {
id
name
column_values {
id
text
type
}
}
}
}
}
Beyond this, experiment in the playground. CTRL+Space brings up the suggestions of available fields at that point in building a query. Being GraphQL you can build almost any structure you need, it is not fixed.
I can’t see the newly created board which was created using GraphQL playground.
I have used the below query.
mutation {
create_board (board_name: “my board”, board_kind: public) {
id
}
}
Please let me know what I am missing?
this would have been created in the main workspace of the account, are you sure you’re looking at the main workspace? You may need to switch out of the CRM product to the Work Management product, using the nine-dots menu in the top left of the site. In Work Management there is a “Main Workspace”.
When creating boards, it is best to specify the workspace ID you want it created in.
Is it possible to create item card in trial version?
I am looking to update an item at once place instead of inline table.
Please guide me that how I can create an item card for the respective board.
You should be able to do any development on a trial account, including an item view.
Did you sign up for a dev account using the link in the first paragraph here? Making your first request or a trial account? I recommend using a dev account for doing actual development then if you use monday.com for actual business purposes, use a separate account.
You can reach out to appsupport@monday.com if you need account assistance to ensure all features you need are enabled.
Creation of item cards themselves on the board is not possible by API. But you can create item views as apps, and then a user (yourself) can add them to a board. The API only works with data/structure but not the UI itself.
I don’t want to do it through the API.
I just want to setup GUI for editing an item and I have found there is an item card option available.
Can You provide me the steps or the documentation for the same?
so, I can create an item card.
Is the item card you want to create going to be several of the column from the board to edit? https://support.monday.com/hc/en-us/articles/360017143959-The-Item-Card-
This will not require development at all, and should really be a separate topic in the Platform Discussions.