Parsing Data

Any help would be greatly appriceated.

I am trying to parse this data BARRIEONL4N 7R6*CA. What I need to do is map “Barrie” to an idoc field name and “ON” to another and so on…

Thank you,

Marlon :smile:

You will need to tokenize the string you have, and map the individual tokens. Use service pub.string:tokenize to do it.

Be aware of the behavior of tokenize when one or more fields are empty. You may want/need to create a new service that uses the String.split method.