MIT app inventor and google sheets

Hi! I’m currently building a bookkeeping app, and one of its features is a proceeds report
that comes with a user account system. I’m planning to use Google Sheets for generating and storing these proceeds reports.

My question is:
Is it possible to automatically create a new Google Sheet (or tab) per user account, based on a template sheet that already contains formulas, so that each user gets their own copy (with the same formulas), rather than all accounts sharing the exact same sheet?

Basically, I want to duplicate a template sheet for every new account — is this doable within MIT App Inventor + Google Sheets integration? If so, what’s the best approach?

According to
https://www.google.com/search?q=google+sheets+limit+on+number+of+sheets
you only can have 200 sheets per spreadsheet.

As an alternative, consider adding an extra column to the account activity sheet identifying the user account id.

Then filter your queries.

There might be other limits on Google Sheets that will cap your volume and speed.

1 Like

Yes possible. But imagine what will happen if you have more than 100 subscribers... How could you manage? Your sheet may take lot of time to load.

Think of ABG advise. Use limited sheet with query option

1 Like

You probably need more advanced techniques from

1 Like

After some study of
http://ai2.appinventor.mit.edu/reference/components/storage.html#Spreadsheet

I would consider setting up your sheets with the year as the sheet name, forcing transactions into shards.

This affords you 200 years of transaction storage.

If you encounter slowdowns in December, further thought would be needed for smaller shards in the current month.

In bookkeeping, this is called "closing the books".

1 Like

Yes, you could create a completely separate templated spreadsheet for each user/subscriber.

To do this from AppInventor, you would need to use suitable google drive/sheets extension/s.

For example:

This would all have to happen on your your own google account (suggest you get a paid one for features and bandwidth)

2 Likes

You may need a separate gas script to copy and existing template.

image

image

Let me know how your get on.