How can I update a variable once it has been set in a running workflow?
Here is my scenario. Once the Hearing Date is set on the list item, I calculate the days, store it in a workflow variable, pause until that calculated date and send an email. But what if someone comes in a changes the date on the list item? Is it is possible to reset that variable/date calculation?
Solved! Go to Solution.
Unfortunatley there are other steps in the workflow, before and after the snippet I'm showing, that I wouldn't want to re-run. I suppose I could cut this portion out and run it as a separate workflow, however my preference is to do it all in one if the software is capable of that.
You could possibly add a loop that compares the current hearing date to the stored date (store the hearing date in a variable) and triggers a subsequent revisit of the reminder logic if the date has changed. Build in a wait on the loop for whatever period you which to poll the value for. If the change is detected it then performs the calculations again.