Hello to all.
I’m running via api(GraphQL) the creation of the item and subitem.
The item creation occurs normally, but the subItem, no. In the CRM panel, is already active the “Dev” mode in (monday.labs).
The evidence is below:
Customer found on Monday.com: 14405239900, ID: 7425239167
Customer already exists with number: 14405232171. Sub-item will be added.
Query to create the sub-item in Monday.com:
mutation {
create_subitem (
parent_item_id: 7425239167,
item_name: "VoiceCall-1726230458.11",
column_values: "{\\"status\\":\\"In progress\\",\\"contact_phone\\":\\"16505239900\\",\\"status5\\":\\"Média\\",\\"long_text4\\":\\"Detalhes da chamada\\",\\"date0\\":\\"2024-09-13\\"}"
) {
id
board {
id
}
}
}
Complete API response: {
"error_message": "Item not found",
"error_code": "InvalidItemIdException",
"error_data": {
"item_id": null
},
"status_code": 200,
"account_id": 25101064
}
The return of the API from monday(“Item not found”) that the item was not found is not correct, because the item does exist.
If I extract the query and run it via “Insomnia” or by the development environment of monday, you can enter it normally.
Example:
mutation {
create_subitem (
parent_item_id: 7425239167,
item_name: "VoiceCall-1726230458.11",
column_values: "{\\"status\\":\\"In progress\\",\\"contact_phone\\":\\"16505239900\\",\\"status5\\":\\"Média\\",\\"long_text4\\":\\"Detalhes da chamada\\",\\"date0\\":\\"2024-09-13\\"}"
) {
id
board {
id
}
}
}
Can anyone help with any ideas?
Thank you!