The idea is to replace paper book called "exit book" that was lying several years at the exit of building where i work.
So I created simple list with 2 content types, one of them called "employee exit". Each employee must create an entry on this list when he walks out of building. He declares destination, date and time of going out and returning to his office/building.
Everything works fine, but, as always, there is a caveat. I need to give the user ability to adjust his entries if he or she will get back earlier or later than declared.
So i created a workflow "set permissions", which looks for "time of return" and compares it to entry "modified" attibute. If "modified" is later than "time of return" then entry is "closed": user losts ability to edit entry anymore. Else - user is given rights to edit entry again, and again and again - until the comparision is true.
And this works fine too, but... what if we have this scenario:
1) it is 9AM and user declares his exit from 10:00AM to 11:00AM, 2) it is 11:05AM and user want to "confirm" that he went back at 11:00AM, so he goes to editing the entry, changes nothing, and saves the form
Sadly, Sharepoint treats this situation as "nothing changed" and workflows does not start.
Any ideas how can i start this workflow to change permissions even if there was no change on form?
Tried to do some hidden attributes, but with no luck. Maybe You can help :)