a1user
(a1user)
September 20, 2023, 2:44pm
1
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
reamon
(reamon)
September 20, 2023, 8:12pm
5
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).
system
(system)
Closed
March 18, 2024, 8:13pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.