Are you using Grab corporate promo codes (ex: KUDOS)? Want to know your promo usages without taking too much effort by manually recording your trip fares(ain't nobody got time for that)? Well you're in luck! Thanks to Google Apps Scripts you can run this script to generate your promo usage (feelsgoodman.jpg).
This script only works for:
- Grab Receipts in Indonesian
- Gmail account
This script will filter your Grab receipt emails and parse them to specified Google sheet.
Make sure you're signed in to your Google account associated with your Grab Account so the script can read your Grab Receipts.
- Open Google Drive, create a new sheet
- In the newly created spreadsheet, open Tools -> Script Editor
- Copy grabreceiptpromousage.gs and paste it to the Script Editor
- Change SHEET_ID with your current spreadsheet id
- Try to click run icon in the Script Editor
- It will prompt you to save the project, save the project (e.g. grabscript as the project name)
- Try to run it once more, it will prompt you to authorize the script
- Choose the Google account associated with your Grab Account
- Click Advanced
- Click Go to [your project name] (unsafe)
- Click Allow
- Click Select function and select run in Script Editor
-
Click run icon and your spreadsheet will be filled with your receipts data
-
You can modify the date filters to your liking (grab promo resets at the 25th of each month, so for usage during 25th of September through 24th of October you can set after_date = '2017/09/25' and before_date = '2017/10/25')
-
You can also run the script automatically on your preferred schedule using project trigger
-
Click the add trigger link
- Choose the run function and time-driven event, choose the rest to your liking and save it
- Voila! the spreadsheet will be periodically updated by that trigger