Hello!
Anyone have a favorite way to have a global counter?
I'm thinking of a workflow where each incoming request is assigned the next in a sequence of sequential numbers.
For some reason I thought I saw some sort of global counter somewhere in the interface, but I can't find it now.
My current theory is to have a document somewhere in the repo with security so it is only visible by the workflow, and for it to have a field with the current counter value. Then set up a part of the WF to -
- Find entry by ID (to get my counter document)
- retrieve field value (to get the value from that field.)
- Token calculator to +1 (Add 1)
- Assign Field Value. (write the new value back to the doc field.)
I'm sure there are bugs to work out, but I think that should work.
Any thoughts?