Temporal schedules global variable

I have a temporal schedule that does database cleanup - I want to have a global variable that each scheduled run uses, updates and then passes on to the next scheduled run. Is that possible?

Use workflow.GetLastCompletionResult. See documentation for more info.