I’m writing an app to synchronize our SugarCRM with a Monday board.
All is working as expected, but sometimes one query to update a people column is failing with an error 500.
The query is:
mutation {
change_multiple_column_values (
board_id: 165483237,
item_id: 724910374,
column_values: “{"people":{"personsAndTeams":m{"id":5428485,"kind":"person"}]}}”
)
{
id
}
}
When using a different user id, all is working as expected.
It seems that the user 5428485 is a Team Member, but not not a Board Member.
If I add this user to the Board Member list, all is working as expected.
How to check if a user is a Board Member before updating the column?
How to add a user as a Board Member, either Member or Guest?
Thanks for your help.