How to Split String through Siebel eScript

I have created a Business Service, which takes single input and split the name based on space return the final values in output arguments.

Below is the script:

var FullName = Inputs.GetProperty("Full Name");
var NameArray = FullName.split(" ");

var FirstName = NameArray[0];
var SecondName = NameArray[1];
var ThirdName = NameArray[2];

Outputs.SetProperty("First Name", FirstName);
Outputs.SetProperty("Second Name", SecondName);
Outputs.SetProperty("Third Name", ThirdName);


How to create Business Service in Siebel
← Back to Home

Comments

Post a Comment