https://linen.dev logo
Is there a way to create multiple triggers for sam...
# 🖥│support-forum
d
I learned that composio SDK internally calls upsert api that uniquely identifies trigger instance by
slug + connected_account_id
that prevents it from creating multiple triggers instances for same trigger and user What if we want to listen to events for calendar in multiple calendars Trigger: GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_CREATED_TRIGGER That accepts calendar_id: str So trigger doesn't natively support multiple calendars
u
Hey @DhruvMaradiya, you should be able to create multiple triggers for same trigger slug and connected account but with distinct trigger configs. Let me know if you face any issues.
d
Yes I am passing different calendar_id for each create request, but all create request returns same composio trigger id. I'm using composio SDK in python and calling all three create trigger request in parallel. I'll try different approaches with sdk and direct api as well and will let you know. Thank you