Skip to content

onboarding: one form record activates multiple same onFormSubmit triggers #70

Description

@andiechu

Problem

image

Also it sent multiple Emails to the new memebers too.

Reason

The reason I found that it's because Google App Script's trigger is not that reliable. A lot of people complained about the same question:
https://stackoverflow.com/questions/55283616/script-running-multiple-times-onformsubmit
https://stackoverflow.com/questions/54834837/how-can-i-be-getting-multiple-unwanted-event-blocks-from-the-same-onformsubmit-t/54860085#54860085

Solution

  • check again the logic and fix the bug of sending duplicated Emails
  • add lock to triggers conditional statement to prevent it from running for multiple times
  • refine the logging system

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions