METADATA gives compose trigger the permission to access the metadata of
the draft when a compose addon is triggered. This includes the audience
list (To/cc list) of a draft message.
None
NONE means compose trigger won't be able to access any data of the draft
when a compose addon is triggered.
Unspecified
Default value when nothing is set for DraftAccess.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eComposeTrigger.Types.DraftAccess\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Apps.Script.Type\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDraftAccess\u003c/code\u003e enum defines the level of data access a compose trigger requires, with options including \u003ccode\u003eMetadata\u003c/code\u003e, \u003ccode\u003eNone\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.3.0 is the latest version of this enum, with prior versions also being 2.2.0, 2.1.0, 2.0.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetadata\u003c/code\u003e field allows access to the draft's metadata, such as the audience list, while the \u003ccode\u003eNone\u003c/code\u003e field denies any draft data access.\u003c/p\u003e\n"]]],[],null,["# Google.Apps.Script.Type - Enum ComposeTrigger.Types.DraftAccess (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n- [2.2.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.2.0/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n- [2.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.1.0/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n- [2.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.0.0/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n- [1.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.1.0/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n- [1.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.0.0/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess) \n\n public enum ComposeTrigger.Types.DraftAccess\n\nReference documentation and code samples for the Google.Apps.Script.Type enum ComposeTrigger.Types.DraftAccess.\n\nAn enum defining the level of data access this compose trigger requires.\n\nNamespace\n---------\n\n[Google.Apps.Script.Type.Gmail](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail)\n\nAssembly\n--------\n\nGoogle.Apps.Script.Type.dll"]]