I want to add event to public Calendars using Apex code in trigger. Currently I have hardcoded id of public Calendar in my code. But I don't want to hardcode id of Calendars. I want to query it in my code. But I am not able to query it as it says sObject type 'Calendar' is not supported.
Any help is appreciated.