Use
substring($Zeros,0,$DesiredLengthValue-length($ValueWithoutLeadingZeros) )+$ValueWithoutLeadingZeros
where:
- $ValueWithoutLeadingZeros is a string with the original value without trailing zeros
- $Zeros is a string with at least the amount of zeros for the maximum length of the value including trailing zeros (e.g. '000000000000000000000')
- $DesiredLengthValue is an integer with the Desired length of the desired value including trailing zeros
Hi Ad,
You could do this in an ‘On Change’ microflow or in your safe action.
use length() to check the length of the input (use toString() first if the input attribute is an Integer), and just add 0s to achieve your desired length ( if $length = 5 then '00’+$input else if length= … etc)