How to allow access for importrange function via apps script?

@Franzi suggested using undocumented approach which works and does not require making a donor/source spreadsheet public. Here’s how you can do it from Google App Script: function addImportrangePermission() { // id of the spreadsheet to add permission to import const ssId = SpreadsheetApp.getActiveSpreadsheet().getId(); // donor or source spreadsheet id, you should get it somewhere const … Read more

ARRAY_LITERAL, an Array Literal was missing values for one or more rows

…understanding the ARRAY_LITERAL ERROR: until both queries/filters/formulas output something then all is good: however if one of those queries/filters/formulas doesn’t have anything to output it outputs #N/A – No matches are found in QUERY/FILTER evaluation. – the issue is that #N/A is only in the 1st cell: but array expects that matrix on both sides … Read more