Hello everyone,
I'm encountering an unexpected behavior with Google Apps Script triggers and I'm wondering if anyone else has experienced this or has any explanation.
I programmatically created a trigger to execute a function at a specific time. Immediately after creation, I used the getUniqueId() method to obtain and save the ID of this trigger.
Subsequently, I accessed the "Project Triggers" section and modified the execution time of this existing trigger. I saved the changes.
To my surprise, when I ran the code again to list the triggers and check the ID of that specific trigger, I noticed that the ID had changed.
I expected the trigger ID to remain the same, as I only modified the execution time and did not delete and recreate the trigger.
I used the following code to get the ID:
Has anyone else experienced something similar? Is this the expected behavior or could it be a bug?
Any help or insight into this issue would be greatly appreciated.
Thank you!