How to split a field into 2

Hi all,

i have a requirement where I have to split a field into 2 and map it to two different fields.

For example, They are sending a field…which has David, Richard value.

They are sending (,) in the field…and I need to send David to one field and Richard to another field.

So, I have to map value before (,) to one field and value after(,) to another field.

Can you guys please help me to write the logic to split.

Regards,
David.

Use either pub.string:indexOf and pub.string:substring or
pub.string:tokenize (check if the delimiter can be there multiple times and if this is expected behaviour first)

usually I prfer using those as transformers in a map step, not via invoke.

details to be found in Integration_Server_Built-In_Services_Reference