Automatically Export Xero Reports to Google Sheets on a Schedule

A management-accounts sheet should already be current when someone opens it. This covers refreshing saved Xero reports into Google Sheets on an hourly, daily or weekly schedule.

How the schedule works

Each saved report has a refresh setting: manual, hourly, daily or weekly. When any report in a spreadsheet is scheduled, the add-on installs one hourly Apps Script trigger for that spreadsheet. On each tick it checks which saved reports are due and runs them. When none are scheduled, the trigger is removed.

Daily and weekly schedules catch up if a tick is late: if the trigger fires after the target hour, the report still runs that day rather than waiting for the next one.

Step by step

  1. Connect your Xero organisation and save a report. See exporting a Xero Profit and Loss report.
  2. Edit the saved report and set the refresh to hourly, daily or weekly. Scheduled refresh needs the Pro plan; the free plan keeps manual refresh.
  3. Use a relative date range such as this month or this financial year to date, so each scheduled run reports on the current period.
  4. Save. The first scheduled run happens at the next hourly tick that is due.

Why relative ranges matter here

A schedule with custom fixed dates re-exports the same period every time. Relative ranges are recalculated on every run, and the financial-year ranges use your organisation’s year end as stored in Xero, so a daily “this financial year to date” Profit and Loss rolls over on its own at year end.

Troubleshooting

The sheet did not refresh at the exact hour

Apps Script time-based triggers fire within an hour window rather than on the minute. Do not rely on minute precision.

Scheduled runs stopped

The Xero connection belongs to the person who set up the schedule and is stored in their Google account. If they disconnect the app in Xero or lose access to the organisation, scheduled runs fail until they reconnect from the menu.

My formulas disappeared

Each run clears the destination tab. Build summaries and charts on a separate tab that references it.

Related guides

See exporting a Xero Profit and Loss report to Google Sheets for setting up the first saved report.

Reports that refresh themselves

Scheduled refresh is a Pro feature of Reports Exporter for Xero: hourly, daily or weekly per saved report, for US$10/month or US$100/year.

See Reports Exporter for Xero Install from Google Workspace Marketplace

I'm the developer of Reports Exporter for Xero, so weigh this guide accordingly. Xero and Google Sheets™ are trademarks of their respective owners. This add-on is independent and is not affiliated with or endorsed by either.