Download the same report for every client in a Google Sheet

How to download the same report for every client in a Google Sheet: install the Chrome extension, click Build with Browser agent, tell the agent where the list of clients is and which Drive folder the reports go in, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To download a report for every client, a Read data from a Google Sheet step reads the list, and a Loop through data step takes the clients one at a time. Inside the loop, Go to page opens the client's report page and Download a file to Google Drive saves the file, named after the client. One run collects the whole list, which suits an agency or anyone with several accounts on the same web app.

Author
Alex Barlow
Published

Build the client report download from a description


Describe it and click the button: the agent builds and tests the client report download in your Chrome extension. See automate reporting for everything a reporting bot can do. A report behind a login needs a stored session or a saved login, so the run is signed in.

  1. Read the list of clients from my Google Sheet
  2. Open the report page for each client
  3. Download the report to my Google Drive folder
  4. Name each file after the client
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need a Google Sheet with a header row, the client's name in the first column and the address of that client's report page in the second, and a Google Drive folder for the files. Try the run on two or three rows before the whole list.

What the agent does when you click the button


The agent opens a browser in the cloud, asks for the sheet of clients and the Google Drive folder, then builds the steps in the no-code builder and saves them, ready for you to run.

The Chrome extension's new automation panel with the four lines describing the client report download: read the list of clients from my Google Sheet, open the report page for each client, download the report to my Google Drive folder, name each file after the client, and the Build with Agent button
1.Describe the client report download to the Browser agent in four lines and click Build with Agent.
The Browser Agent asking where the data for the client report download is, with the options a Google Sheet, an Airtable table or a webhook, answered with a Google Sheet, then asking which Google Sheet holds the list of clients
2.The agent asks where the list of clients is, then which Google Sheet holds it. Paste the sheet's link and it builds the bot.
The client report download in the no-code builder: Read data from a Google Sheet, then Loop through data over the clients, with Go to page and Download a file to Google Drive inside the loop, the download step showing a Select is not set warning
3.The agent builds the bot: read the clients from the sheet, then open each client's report page and download the file inside a loop. A step it could not finish is flagged, here the download link, for you to select.

Build the client report download step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Read data from a Google Sheet
    • Spreadsheet: your sheet
    • Sheet name: Clients
    • First cell: A2
  • 2.0 Loop through data
    • repeats for every row in [google-sheet-data]
    • 2.1 Go to page
      • URL: the report page column of [google-sheet-data]
    • 2.2 Download a file to Google Drive
      • Select: the report's download link
      • Google Drive folder URL: the folder the reports go in
      • File name: the client column of [google-sheet-data]

Common questions about downloading a report for every client


Why does the client report download stop part way through the list?

A failed step ends the run, so one client whose page has no report stops the rest. Wrap the steps inside the loop in a Try step to skip that client and carry on.

Why is every client's file the same report?

The report page is the same address for every client, and the web app switches client from a menu. Replace the per-client address with a Click element step on the account menu and an Enter text step that types the client's name from the sheet, or ask the agent to build the switch.

Why does the bot try to download a report for the header row?

First cell on the Read data from a Google Sheet step is at its default of A1, so the header is read as a client. Set it to A2.

How do I download the reports when each client has its own login?

Save a credential for each client and build one automation per login, or log out and in inside the loop. One login that can see every client is simpler and more reliable.

How do I run only the clients that have not been done?

Write Done back to the client's row after the download and skip marked rows on the next run. See mark Google Sheet rows as done.

Can I put the date in each client's file name?

Yes. Add a Date and time step and insert its date after the client's name in File name, in a format with hyphens.

Can I set the date range for each client's report?

Yes. Add the date steps inside the loop, before the download. See set a report's date range automatically.

Can the client reports download on a schedule?

Yes. Set a schedule and the run happens in the cloud with your computer off. See download a report from a website to Google Drive on a schedule.

Can I download a report for every client without code?

Yes. The automation is built from the four lines above with no code, and adding a client is adding a row to the sheet.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides