Error msg from custom function when trying to open another spreadsheet. “You do not have permission to perform that action.”
问题 I have a custom function that I want to use to retrieve the cell value in a sheet from another spreadsheet. The two parameters of the function are row and col and they determine the cell to reference. Whenever I try to use the function, I get the error "You do not have permission to perform that action." , pointing to the line with the openByID method. Here is my custom function: function TEST(row,col) { var formDataSpreadsheet = SpreadsheetApp.openById(FORM_DATA_SPREADSHEET_ID);