Using ImportRange in a template and maintaining sheet association - google-sheets

I have a sheet (SheetA) that is a template in the GSuite template library.
SheetA uses the importrange function to import data from another sheet (SheetB). SheetA has been associated to the other sheet.
When a new sheet (SheetC) is created using the template (File->New From Template) the import has to be manually authorised between SheetC and SheetB, even though the template SheetA already had the authorisation in place.
Is there anyway that the re-authorization can be avoided as it was authorized in the original SheetA already?
Thanks!

The authorization has never been done between SheetB and SheetC so if you want to use the IMPORTRANGE, you need to allow the access to it.
When you are importing data from the SheetB you are only authorizing SheetA to access it - not all the other sheets.
So if you want to import data from SheetB into the SheetC, you need to authorize this again as this time it's another sheet requesting the data.
According to the IMPORTRANGE documentation:
Spreadsheets must be explicitly granted permission to pull data from other spreadsheets using IMPORTRANGE. The first time the destination sheet pulls data from a new source sheet, the user will be prompted to grant permission. Once access is granted, any editor on the destination spreadsheet can use IMPORTRANGE to pull from any part of the source spreadsheet.
Reference
IMPORTRANGE Sheets

Related

Get the list of all Google excel sheets associated with Google account

I want to make a application where
User Will authenticate with there Google account
Then can see all the sheets list there
They can select to edit or update there sheets or they can create a new sheet and input there data
How can i do this ?
I tried with google sheets api v4
Your app description exactly matches the functionality already provided by the Sheets start page. Use that instead of writing your own replica of the same.

Is there a gspread call to refresh an importrange() import?

I am importing some rows from a sheet A into sheet B using the =importrange() function. I am using the python gspread library to read sheet B. The problem I'm having is if I don't leave sheet B open in a browser somewhere, then changes to sheet A are not seen by my code via gspread.
Is there a gspread API call that will trigger the importrange() refresh? Or is there a better way to do this? In our use case, sheet B needs restricted user access and sheet A can be editable by a broader set of people.

Is there any way to check if a google sheet is "importranged" in another

I have a number of google sheets that are updated automatically from bigquery through sheetgo that are shared with a lot of people. I want to stop updating some of these. Is there any way to check if a google sheet is used as a source through "importrange" to another google sheet?

How to import data form one spreadsheet into another Google Sheets?

I am trying to connect 2 Google sheets (a Check-in and a Check-out Google sheet) to feed data off a management sheet. I don't know what formula or function to use to connect the 2 sheets to feed off the management sheet.
you can use IMPORTRANGE:
=IMPORTRANGE("URL of spreadsheet", "Sheet name!A1:D")
note: it will first prompt you to allow access

How to Sync data from different Google Sheets to a Google master Sheet

I have Team of 15 people updating there data of call backs and other info in the Microsoft Excel
Now i want to use Google Sheets for Real time data. So i want all of them to use a Google Sheet and a Team leader should have the updates when ever they are updating the there own sheets. Everyone should have there own passwords to open there but an Admin should have access to all of there data in those sheets. I hope you understood my needs. I know its possible with Google Sheets but i don,t know how to prepare one as am new to this platform.
Please Help.
If you use
=importrange("sheet url", "range you want to import")
on a separate sheet, it will update dynamically as they change things - I have done this specifically with remote employees previously

Resources