Search code examples
google-apps-scriptgmail-addons

Gmail add-on,how is the method of updating only message


I would like to make addon for Gmail but i can't because of some issue. When i try to ''update'' ''GmailDraft'' it's not coming ''reply'' of ''GmailMessage.createDraftreply''.

Could anyone teach me how is the method of updating only message on ''GmailDraft''


Solution

  • Here is a documentation on how to use the methods in Class GmailDraft.

    A user-created draft message in a user's Gmail account.

    To update the draft, try the update(recipient, subject, body) method or update(recipient, subject, body, options) if you have optional arguments.

    Also, if you are having problems with the reply, maybe this documentation could help.

    There is a sample code on how to create a draft message as a reply to the sender.