cancel
Showing results for 
Search instead for 
Did you mean: 

Build String Action with fn-PadLeft or fn-PadRight Function Returns Unexpected Results

ISSUE
When using a Build String action that includes the fn-PadLeft or fn-PadRight inline function, the text does not render as expected. For example, when using the following function, where the ItemProperty ID has a value of 4, the expected result is "400" but the actual result is "4":
fn-PadLeft({ItemProperty:ID}, 3, 0)
ERROR CODE
RESOLUTION
Verify that there is no space between the comma and the optional padding character. For example:
  • fn-PadLeft({ItemProperty:ID}, 3,0)  will render as expected.
  • fn-PadLeft({ItemProperty:ID}, 3, 0)  does not render as expected, due to the space after the comma and before the zero.
ADDITIONAL INFORMATION
RELATED LINKS
Version history
Revision #:
1 of 1
Last update:
‎11-19-2018 01:01 PM
Updated by: