Jared Robbins
08/18/2022, 8:19 PMalex
08/18/2022, 8:45 PMJared Robbins
08/18/2022, 9:07 PMalex
08/18/2022, 10:29 PMDateTime
block to hold the last run time and that value would be saved on each run. To handle the case where a block document doesn’t exist, you can run DateTime.load("my-block-name")
in a try clause and catch the ValueError
that is thrown if a block document with that name doesn’t exist. You then would be able to create the block in the except clause.Jared Robbins
08/18/2022, 10:32 PM