Drag & drop emails from inbox view to addon card built using Gmail addon using Alternative runtime (Same as Tasks app by Google).

82 views
Skip to first unread message

imantest wr

unread,
Jul 30, 2021, 3:08:56 AM7/30/21
to Google Apps Script Community
Use Case: 
Need to allow user to get one or more emails to drag & drop into addon card built using Gmail addon using Alternative runtime & need to perform operation on the emails selected. It is similarly Tasks app added by Google (by default) in Gmail page to create tasks by drag & drop of multiple emails in to Tasks card.

Need clarification:
Currently I am not finding any API methods to drag & drop emails to addon card in Gmail addon using Alternative runtime.
Official documentation: 

Is anybody tried drag & drop of emails into addon card / Found any roadmap on when google is planning to add this feature into Gmail addon framework (using Alternative runtime).

Thanks in Advance

Clark Lind

unread,
Aug 2, 2021, 1:10:07 PM8/2/21
to Google Apps Script Community
I don't know that this will ever be possible. There is a whole tasks.js file that handles all of this on a dedicated site (tasks.google.com) which is integrated with Gmail behind the scenes. By their nature, Add-ons can't do very much outside their sandboxed iframe. So you can't even create "addEventListener" type things since you don't have access to the main browser object. The kinds of things you are trying to do sounds like it would fit better as a browser add-on, not a Gmail add-on. Look at "Drag" for a browser-based Gmail add-on.
Reply all
Reply to author
Forward
0 new messages