https://linen.dev logo
Triggers for the same user
# 🖥│support-forum
o
Hi, Currently the Composio triggers behavior is like the following: If the same user define twice the same trigger with the same account ID and same trigger's parameters - Then only one trigger is created. This behavior isn't ideal, since the user created 2 triggers in my app which do 2 totally different things - and if he delete one of them - the other one also stops working. Is it possible to change this behavior and create 2 separate triggers?
u
Hey @Or, It’s not possible to have two different triggers for the same connected account and with the same trigger configuration. This is intentional behaviour because having two duplicate triggers will return the same payload.
o
I see, Thanks!
@Uday Is it possible to know in the "composio.triggers.create" response - that you returned an existing trigger's ID, and didn't create a new one? If not, can you expose it?
u
Hey @Or, you can use this method to get any active accounts for connected account Id:
composio.triggers.list_active
. Lmk if this helps!
o
ohh sure - sounds that it will solve my issue
8 Views