How to use tokenize function in Mapforce to split String

1.7k Views Asked by At

I recently started to learn about the MapForce application and I noticed that there is "tokenize" method which user input String and delimiter. But it returns only first token only.

My problem is how can I access all the tokens from "tokenize" method?

This is the MapForced map which I used

This is the output that I got for above mapping

I noticed that there is warning saying that it took only first token and ignore the rest. I need to know how can I take those tokens in to output String.

2

There are 2 best solutions below

1
Coder On BEST ANSWER

In the tokenize method it will return the all the tokens but when you pass it to a result it will only take first token. But if you see below example in normal process it will return all the tokens then apply the concat function for each token.

enter image description here

Out put would be A1 B1 C1 D1

0
Phierru On

Use the functions first-items and skip-first-items (if necessary repeatedly) Example