mcan
mcan

Reputation: 2082

Triggering a function with clicking on compose button

I wonder If it is possible to run a function as clicking on the compose or reply buttons. My updateDraft function runs as clicking on the add-on button in compose window but I couldn't find any information in documentation, about running a function just after clicking on the compose button.

   "composeTrigger": {
      "selectActions": [{
        "text": "Insert Image",
        "runFunction": "updateDraft"
      }],
      "draftAccess": "METADATA"
    }

compose or reply buttons

add-on button

Upvotes: 0

Views: 133

Answers (1)

Cooper
Cooper

Reputation: 64040

The only access that Gmail Addons have to Gmail is through the Card Service. So if you can't find it in the card service then you don't have it.

Card Service

Upvotes: 1

Related Questions