I have this gmail addon which has a composeTrigger defined in appscript.json like this.
"composeTrigger": {
"selectActions": [
{
"text": "ComposeTrigger",
"runFunction": "composeTrigger"
}
],
"draftAccess": "METADATA"
},
In code.gs, I have defined composeTrigger as:
function composeTrigger(event) {
Logger.info(event.draftMetadata)
}
Now, this draftMetadata only contains details of recipients (to, cc, bcc).
I want to access the subject, body, and attachments also, but I have been unable to do so.
How can I get this data?