Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No item with the given ID could be found, or you do not have permission to access it

I have an add-on which requires access to various Google services, and requests the following access when initially loaded:

enter image description here

I also have a webapp which runs as me (the same google account as the add-on) and can be accessed by anyone including anonymous. The webapp trys to access a form which I believe I should already have access to.

Webapp:

function doGet(){
  var form = FormApp.openById('');
  var formId = form.getId();
  var items = form.getItems();
  return ContentService.createTextOutput("Form contains "+items.length+"items.");
}

Error:

No item with the given ID could be found, or you do not have permission to access it.

Question:

When the add-on initially requests access to the user's Drive, does this give access to the add-on only or to the developers google account?

like image 590
beano Avatar asked Oct 24 '25 06:10

beano


1 Answers

I had the same problem, the problem was the ID, in order to fix the problem you need to pass the edit ID of the form. I've attached a picture to further describe. enter image description here

like image 99
deepGrave Avatar answered Oct 26 '25 23:10

deepGrave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!