-1

I want to create an add-on similar to Trello. Every time you open a mail, Trello automatically fills in the "Name" and "Description" fields for you. The name here is the "subject" of the mail and the description is the "body" of the mail. I want to achieve the same thing.

[trello-image-example][1] [trello-image-example][2] [my-add-on][3]
Here is my code: https://www.toptal.com/developers/hastebin/pejasapero.php

I get this when I run my code:

[content-not-available-image][4]

[1]: https://i.stack.imgur.com/ykRJU.png [2]: https://i.stack.imgur.com/lTAv9.png [3]: https://i.stack.imgur.com/OgHGw.png [4]: https://i.stack.imgur.com/ibWzu.png

2ach
  • 1
  • 1

1 Answers1

0

What you want to do is to create a Workspace Add-on.

Here is a sample which shows, how to get data from a Email and integrate it into the Workspace Add-on.

Neven Subotic
  • 1,399
  • 1
  • 6
  • 18
  • When I copy the appscript.json to my editor, it throws an error saying "Service not found: drive v3". – 2ach Feb 24 '22 at 03:05
  • See [step two](https://developers.google.com/apps-script/add-ons/teams-addon-sample#step_2_update_the_script_manifest) in the instructions. You need to set the scopes. – Neven Subotic Feb 24 '22 at 06:50