AnsweredAssumed Answered

How to use Split function in Spel Code

Question asked by carlosgrv on Oct 22, 2018
Latest reply on Oct 24, 2018 by carlosgrv

I have a string who I want to get separate (split) but I wish to use both sides of resultant string in different fields in Service Desk. Can u help me how to obtain this?

 

For example:

I have the original string variable as:

twostrings = Consult ticket_ 02;

string resume;

//and the function split as: 

split(resume, twostrings, "_");

 

So the result it will be:

resume = Consult ticket;

 

But if I want to use the other part of the split result: 02, how I do it?

 

Thanks for the help.

 

Regards,

Carlos Ramirez

 

servicedesk 14.1

servicedesk

spel code

spl code

sdm fields

sdm tickets

Outcomes