I have workflow that was previously using a formatted column to grab the next available request number. Now they seem to unsupported. I get the number from a column I call NextNumber, add leading zeros, and tack it at the end of a string I put together from 2 other columns, so it looks like TravelRequest-FY19-0001.
I tried using some RegEx I found on this forum (not much) and internet but I get weird results or it only gives me the number with no zeros. I want a max of 4 numbers (0001 to 9999)
This is one I tried, but it only gives me the number without 0.
(d+)/'0' x (4-length($1))
I also assume using a RegEx (replace?) to build the leading zeros first then a build string would be the easiest?