Hey everyone,
I'm hoping someone here might have done this before, or something similar. We have a process whereby local businesses can renew or apply for a new business license. Each license has a unique number assigned to it (10 characters total, with leading zeroes, i.e., 0000001234).
What we'd like to do is have workflow automatically generate and return the next number in the sequence. Right now, we're at 0000003451. So the next time someone submits a license, we'd like for it to return a value of 0000003452, then both set that number on a Forms business process variable as well as use it for a simple field merge in Word.
The latter two steps I can accomplish on my own, but is workflow capable of identifying the next number in a sequence, and if so, how would I go about accomplishing this? Bear in mind this wouldn't be a batch - owners would be submitting their license applications or renewals individually, so workflow would have to be smart enough on each instance to know that the previous numbers have been assigned and it needs the next one in the sequence.