I am not writing a code with the Google FormApp, as we all know, every Form has a Destination Sheet,I want to open the SpreadsheetApp by :
var destId = FormApp.getActiveForm().getDestinationId();
var ss = SpreadsheetApp.openById(destId);
But I've got an warning that "you don't have the permission openById",that means I can't open the Spreadsheet in the FormApp's script?
Or is there anything wrong with my code?
P.s. I am writing code based on "form notifications by google".
Thanks!
delete the code @OnlyCurrentDoc