Help center
Pull your reports into Google Sheets
You can bring your Bookledo reports into a Google spreadsheet and refresh them whenever you like. A small script you add to your own spreadsheet reads your books with a read only key. It adds a Bookledo menu and a BOOKLEDO formula. Nothing in Bookledo changes, and the script cannot change anything in your books.
For a one time copy of everything, Export your data is quicker. Use the script when you want figures that stay up to date.
Make a read only key
- In Bookledo, select AI Activity in the sidebar, then open the AI access tab.
- Type a Key name, such as Google Sheets.
- Leave only Read chosen.
- Select Create key, then copy the key from the yellow box.
Bookledo shows the full key one time only. Connect AI to your books covers keys in more detail. Only an owner or admin of the business can make a key.
Add the script to your spreadsheet
- Open the script at bookledo.co/integrations/google-sheets/Bookledo.js, select all of the text, and copy it.
- Open the Google spreadsheet you want the reports in.
- Select Extensions, then Apps Script. A new tab opens with a file named Code.gs.
- Delete what is in Code.gs, paste the script in, and select the save icon.
- Go back to your spreadsheet and reload the page. A Bookledo menu appears beside Help after a few seconds.
Save your key in the spreadsheet
- Select Bookledo, then Set API key.
- The first time, Google asks you to allow the script to run. Choose your Google account and allow it. If Google warns that it has not checked the app, that is because the script is your own copy. Select Advanced, then the link to go to the project.
- Select Bookledo, then Set API key again if the box did not appear, paste your key, and select OK.
Bookledo checks the key right away and tells you it is connected. The key is saved in the spreadsheet's script settings, never in a cell.
Refresh your reports
Select Bookledo, then Refresh reports. The script fills five sheets, adding any that are missing.
- Bookledo Profit and loss, for this fiscal year to date
- Bookledo Balance sheet, as of today
- Bookledo Trial balance, for all time
- Bookledo AR aging, what customers owe, by how overdue it is
- Bookledo AP aging, what you owe vendors, by how overdue it is
Run it again any time to bring the figures up to date. It replaces what is on those five sheets, so keep your own notes and charts on other sheets.
Pick your own dates with a formula
Type a BOOKLEDO formula in any cell. The report fills the cells below and to the right, so leave room for it.
=BOOKLEDO("reports.profitAndLoss", "2026-01-01", "2026-03-31")shows the profit and loss for those dates.=BOOKLEDO("reports.balanceSheet", "2026-06-30")shows the balance sheet as of that day.=BOOKLEDO("reports.trialBalance", "2026-06-30")shows the trial balance as of that day.=BOOKLEDO("reports.arAging")and=BOOKLEDO("reports.apAging")show aging as of today.=BOOKLEDO("invoices.list")lists your latest invoices.contacts.list,bills.listandaccounts.listwork the same way.
A date can also be a cell that holds a date, such as =BOOKLEDO("reports.profitAndLoss", A1, B1). Leave a date out to get the report's usual period. Google Sheets keeps a formula's last answer until you change one of its dates, so to see new figures, change a date or use Refresh reports.
Keep your key safe
- Anyone who can edit the spreadsheet can find the key in its script settings. Share the spreadsheet as Viewer with anyone who should not hold the key.
- Use a key with Read only. The script never needs more.
- To take the key out of the spreadsheet, select Bookledo, then Remove API key.
- To stop a key everywhere, revoke it on the AI access tab in Bookledo.
If something goes wrong
- No Bookledo menu. Reload the spreadsheet. If it still does not show, open Extensions, then Apps Script, and check that the script was saved.
- A cell says "no API key is set". Select Bookledo, then Set API key, and paste your key.
- A cell says "The API key is invalid or has been revoked". The key was revoked, or part of it was missed when you copied it. Make a new key and set it again.
- A cell says "This API key lacks the 'read' scope". The key was made without Read. Make a new key with Read chosen.
- A cell says "Rate limit exceeded". A key can make 100 requests a minute. Wait the number of seconds the message gives, then change a date to try again.