Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TiagoGouvea/gmail-to-google-sheets-script
Search for emails on your gmail account (using a query) and store results on a google sheets
https://github.com/TiagoGouvea/gmail-to-google-sheets-script
Last synced: 13 days ago
JSON representation
Search for emails on your gmail account (using a query) and store results on a google sheets
- Host: GitHub
- URL: https://github.com/TiagoGouvea/gmail-to-google-sheets-script
- Owner: TiagoGouvea
- Created: 2020-10-01T11:17:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T15:07:07.000Z (11 months ago)
- Last Synced: 2024-10-27T11:13:22.027Z (18 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 62
- Watchers: 6
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Gmail to Google Sheet Script
This Google Script can do any search on your Gmail account, and store the results on a sheet file.
The search will be made on your gmail account, from your Google Script. All data will be changed inside your account, with no external access to it.
## How to use
1. Create a new Google Sheet
1. Access menu Extension > App Script
1. Copy the content from [gmailt-to-sheets.gs](gmailt-to-sheets.gs) to editor, replacing the sample code there
1. Replace the value on `SEARCH_QUERY` to your real query (Do your search on gmail first, copy and paste the search terms there)
1. Click on "Save" button (the flop disk)
1. Select `saveEmails` on menu (after "run" and "debug" buttons)
1. Click on "Run" button
1. It will ask for authorization at first run, proceed to accepting it (it's your Gmail account authorizing your Google Script account)
1. After run, the results will be applied to you sheet## Changing fields
If you want to save different message attributes, take a look at [gmail-message class](https://developers.google.com/apps-script/reference/gmail/gmail-message) and chage your script file the code below comments with a pencil (✏️)