I am trying to create a draft with apps script but I cannot seem to get the compose box to open

43 views
Skip to first unread message

abdullah khan

unread,
Mar 10, 2025, 9:14:10 AM3/10/25
to Google Apps Script Community
I am creating an add-on that helps generate emails. Everything works fine. I'm able to generate content for the email. When I generate a new email it is created in the drafts folder which is expected but I want the newly created email to open up in a new or existing compose box window. I can't seem to get it to work.

return CardService.newComposeActionResponseBuilder()
        .setGmailDraft(draft)
        .build();


​Above code snippet shows what I am doing to get the compose window to open up. but it's not working.
Reply all
Reply to author
Forward
0 new messages