public sealed class UniversalAction : IMessage<UniversalAction>, IEquatable<UniversalAction>, IDeepCloneable<UniversalAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Google.Apps.Script.Type class UniversalAction.
An action that is always available in the add-on toolbar menu regardless of
message context.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUniversalAction\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Apps.Script.Type.Gmail\u003c/code\u003e namespace, represents an action available in the add-on toolbar menu in Gmail, regardless of the message context.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides properties such as \u003ccode\u003eOpenLink\u003c/code\u003e, \u003ccode\u003eRunFunction\u003c/code\u003e, and \u003ccode\u003eText\u003c/code\u003e to define the behavior of the action, including opening a link, triggering a function, and displaying user-visible text.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUniversalAction\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, providing a variety of functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of the class, ranging from 1.0.0 to 2.3.0 (latest), each with its own documentation page.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eActionTypeCase\u003c/code\u003e property determines the type of action whether its an open link or a function run, with the \u003ccode\u003eHasOpenLink\u003c/code\u003e and \u003ccode\u003eHasRunFunction\u003c/code\u003e properties respectively telling you if each action is set.\u003c/p\u003e\n"]]],[],null,[]]