Answer the question
In order to leave comments, you need to log in
How to open access to data obtained by the importrange formula through google scripts?
Good afternoon.
Using google scripts, I add the IMPORTRANGE formula to the table.
I take the data from the next table of the same account.
But for the formula to work, after setting the formula, you need to open access to the sheet in another workbook.
Actually, the question is, how to open access through a script, so that the formula would work when opening a file, without any additional user actions?
I tried the construction "file.setSharing(DriveApp.Access.ANYONE_WITH_LINK, DriveApp.Permission.VIEW)", but the result is unfortunately not the one you need.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question