Customer Portal

Split Array not working

Comments 1

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Holaketal,
    the problem lies in the split() function usage. I understand that your intention was to define the dot character as the delimiter within the split() function. However, since it is a special character it needs to be escaped. More information on that matter can be found here.
    string[] elements = split($in.0.Field6, "\\.");

    Another option is to define the second argument as a regular expression as suggested by our documentation.
    string[] elements = split($in.0.Field6, "[.]");

    Kind regards,
    Vladi

Please sign in to leave a comment.