How to tokenize a postcode string?

Product/components used and version/fix level:

Integration Server 10.5

Detailed explanation of the problem:

Hello,

I’m kinda stuck with an extremely easy task (i can’t believe I’m asking this)

How can I tokenize a postcode string?

I want to input 1000-001 so that the output could be:
PostCode: 1000
PostCodeExt: 001

I already make this as a string with built-in flow steps, I’ve tried a bunch of configuration and nothing.

Can someone help

Many Thanks

Error messages / full error message screenshot / log file:

Question related to a free trial, or to a production (customer) instance?

You have to set an index on the output links. Then the links turn to blue

1 Like

Hi,

PostCode will be index=0 and PostCodeExt will then be index=1.

Regards,
Holger

OMGGGGG!!!

I can’t believe it…

Thank you so much!!!

Have a nice day ! <3

Your example here is indeed a simple string, but 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 :(you can write a Java service that looks just like tokenize, but works slightly differently).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.