I was trying to figure out how to send variables to a function that's being run off time-driven (clock) trigger. There's a method by storing the variables in the PropertyStore
in the trigger function and then recall them in the actual function that does whatever task you need.
Please see this question where it's discussed in length. How to set a time-driven (clock) trigger for a function that needs parameters sent to it?
The issue with this method is that it has a limitation.
It is that if I would like to trigger this function twice I would have an issue since I already stored a VALUE for the KEY I created for the function for the first time I triggered it, I cannot go ahead and store another VALUE for the function to use the second time because it's already taken.
For example if I Trigger my function to run tommorow at 2pm I send the variable into a property let's say as a pair 'NAME':'John'. Now if I would like to set a trigger for the same function to run at 3pm but this time I want the 'NAME' to be Steven I cannot do that since it is already set to 'John'
All the code can be found by clicking the link above, it was posted in that question and this is sort of a follow up question. I was advised to give it its own question by moderators.