The flow:
The code queries the client on Monday and if it does not exist, inserts , this process works normally. The item created or exist is added a sub-item to it, and should work, I have only problem with the insertion of the sub-item.
Are you creating the subitem immediately after you create the item via API? If so, would you be able to modify your script so that it waits for 5 seconds after the creation of the main item?
I see in this screenshot only one subitem. The question is if this board already had subitems in it before you saw the error. Because if the board had never had any subitems in it, you would not be able to create a subitem in the board via API.
Yes, I already did that, added a timeout to create the subitem, and it didn’t work.
The screen that I sent the print, was a sub-item added manually. I activated the log in my code to see precisely the structure of the mutation type query that is sent to Monday.
Strange that in a test account, previous, I did this process and worked normally, creating the item and then the sub-item, in this new account, no. Can it be something of release? In some research I see some comments informing about the “Monday Labs” feature and enable the developer mode, is this necessary?
Hello Matias,
I solved it in another way, I used a queue in RabbitMQ to handle the events and a component to read and perform the insertion of the sub item on Monday, worked perfectly. Thank you for your help!