Example: Google Sheets NPM

You need to add console messages in each step, if the first one does not work you need to create the event again from the button properties.