Hi All,
I have created custom trigger to trigger my backend code when new update is created in source board.
So, when user install the integration on his board I will receive the installation event in my subscriber endpoint which is defined in custom trigger endpoints so i will create a new record in my backend DB and store the recipe selected options, webhook id, integration id, subscription id …etc and create webhook using API endpoint on source board.
So, when user create new update in source board, my code will be triggered and read the update to handle the event payload.
When user remove the integration from his source board I will remove the webhook from board using remove webhook API.
Everything working perfectly, but my issue when user install the integration more once same source board, Monday will add another “update was created” webhook on the same board, so I will get the event two times for same created update.
If I checked in my backend DB about this board is stored or not to doses not create webhook on it two times, I will not able to remove the created row which belongs to the removed integration because the unsubscription event provides me with webhookId only.
How i can prevent the webhook duplicate on same board when user install the integration more once on same board.
Or if i don’t needs to create webhook in each time user install the integration on his board how i can remove the recipe row from my backend DB when user remove it from monday.
I hope it was clear
Thanks