Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eCalendarTriggerBuilder\u003c/code\u003e helps in building triggers specifically for Google Calendar events.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods like \u003ccode\u003ecreate()\u003c/code\u003e to finalize the trigger and \u003ccode\u003eonEventUpdated()\u003c/code\u003e to define the trigger activation upon calendar event changes (creation, update, or deletion).\u003c/p\u003e\n"],["\u003cp\u003eTriggers built using \u003ccode\u003eCalendarTriggerBuilder\u003c/code\u003e fire when a calendar entry is created, updated, or deleted.\u003c/p\u003e\n"]]],["The `CalendarTriggerBuilder` creates calendar triggers. The `create()` method generates and returns a new trigger. The `onEventUpdated()` method defines a trigger that activates when a calendar entry is added, modified, or removed, and this method returns the builder itself, allowing for method chaining. Both return the trigger or the builder itself.\n"],null,["CalendarTriggerBuilder\n\nBuilder for calendar triggers. \n\nMethods\n\n| Method | Return type | Brief description |\n|---------------------------------------|--------------------------------------------------|---------------------------------------------------------------------------------------|\n| [create()](#create()) | [Trigger](/apps-script/reference/script/trigger) | Creates the trigger and returns it. |\n| [onEventUpdated()](#onEventUpdated()) | [CalendarTriggerBuilder](#) | Specifies a trigger that fires when a calendar entry is created, updated, or deleted. |\n\nDetailed documentation \n\n`create()` \nCreates the trigger and returns it.\n\nReturn\n\n\n[Trigger](/apps-script/reference/script/trigger) --- The new trigger.\n\n*** ** * ** ***\n\n`on``Event``Updated()` \nSpecifies a trigger that fires when a calendar entry is created, updated, or deleted.\n\nReturn\n\n\n[CalendarTriggerBuilder](#) --- This [CalendarTriggerBuilder](#), for chaining."]]