I need to create a transform that count input characters. For example:
An HR code input that comes in the format 006912 would keep the original value. When only 6912 comes, two zeros will be added in front, making it 006912. I haven’t found any transform that counts the number of characters. Can someone help me?
As Braden noted, it sounds like the leftPad primitive does what you’re ultimately looking to do here, prepend 0s until the string is the correct length.
If you still need to get the length, you’d use the Static primitive and use Velocity code within the value: