I get a notification on my phone every time a transaction occurs on my credit card. I am creating a solution to capture the data from these notifications and merge the transactions into my Tiller data, so that I can always have an up to date budget. (I am also doing this, because it is easier to categorize transactions when they occur, rather than waiting a few days for them to automatically sync from my bank.) As part of the solution I am creating, I would like to process the captured transactions in the same way AutoCat processes transactions in Tiller.
One of the things I appreciate most about Tiller is it’s commitment to transparency in the way formulas are used in the Tiller templates. It would be wonderful if users had similar access to the Google Apps Scripts used by the Tiller extensions. Is there any way I could see the Google Apps Scripts code used by AutoCat, so that I can more easily craft my solution to integrate captured transactions?
This sounds like a very interesting solution and I can totally see the value!
The code in our add-on isn’t open source so there isn’t a way to view it or access it at this time, but I will double check with our engineers on whether there might be a way to call the AutoCat run function from another Apps Script based code base that has access to the same sheet.
If not the code, at least some details on what the code does, and in what order.
I can see all the formulas and figure out what they do. But I’d like better insights into what the server-side code is doing. My assumption so far is that the fill function does this, in this order:
Connect to Tiller back-end to get new transactions
Refresh (yodlee pulls data from the bank) may or may not be automatic depending on security settings and/or whether auto refresh has been enabled
update our database with data from refresh
fill the sheet - this is done manually using the Fill button or if you’re using Google Sheets you can turn on a once daily scheduled fill using the Auto Fill setting.
The fill adds transactions to the bottom of the Transactions sheet then sorts the Transactions sheet newest to oldest and sets “watermarks” along the way so the add-on knows where it left off. Then it adds balance history entries to the Balance History sheet, then sorts the balance history sheet, and sets watermarks.
If you have AutoCat set to Auto Run on Fill then the transactions are processed against your rules before they are added to the Transactions sheet.
Once the automation fills the sheet, is there some event that triggers that I can hook into in GAS? Such that I can do some custom automation post transaction import.