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

Document created by butlerj Support on Nov 19, 2018
Version 1Show Document
  • View in full screen mode
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

Attachments

    Outcomes