Google Apps Script function is not getting executed after authorization

Viewed 171

I'm working on one existing apps script(sheets) app, when user clicks on Save button for the first time it is asking for the authorization which is the expected functionality. But the problem is after authorization the save function is not getting invoked, I need to click it again. So some users are getting confused with this behavior since they are thinking that the data got saved after authorization.

My questions are

  1. Is this the default behavior?
  2. If it is default, how to overcome this case?
  3. Is there any way to execute the function automatically after authorization?

I couldn't paste the code here due to some confidential issues, looking for any links or solutions. Thanks in advance.

2 Answers

The behavior you report actually seems to be a bug.

It has already been reported on Google's Public Issue Tracker and seems to being worked on.

Unfortunately I cannot think of another workaround than informing your users about the current situation.

I can only recommend you "star" the issue to increase the visibility for its importance and get updates about its fixing status.

For years this worked correctly for me, scripts were executed after authorization. Only since today it does not work anymore with any of my scripts. Apparently this has been fixed at some point and now we have it again ...

Related