Hello, I am attempting to build a custom integration that will search a Customers board for existing customers based on multiple columns. This is why I’m not using the built automation recipe for connecting items where columns match. For more details: I’m using phone number and email column to search multiple customer boards and if they match the intended functionality is that it will connect the customer to the quote.
Issue I’m running into, is that when I do this I don’t know of a way to add a connected item without overwriting the existing ones.
What I’m guessing is a way to do this:
Query the existing connected column before mutation and appending the new item id to the existing list of item ids if there are any. Then mutate using this new list of item ids.
What I’m hoping I can do:
I noticed that when I query a connected boards column I get the following response:
'{"changed_at":"2022-05-30T23:33:26.358Z","added_pulse":d],"linkedPulseIds":e{"linkedPulseId":123456789}]}'
I’m hoping that the “added_pulse” can be mutated and I’m just not finding it in the documentation on how to do that?
Currently when I mutate with this format it overwrites the existing linked items instead of appending:
mutation {
change_multiple_column_values(item_id:11111, board_id:22222, column_values: "{\\"connect_boards2\\" : {\\"item_ids\\" : :12345, 23456, 34567]}}") {
id
}
}
Any insight here is appreciated.