Skip to main content

I need to parse out a field and retrieve the LastName only.  I know how to do this via code, but don't want to convert the entire process just to handle this one function as our process managers aren't well versed with Visual Studio.  With that said, I'd like to keep this using the OTB K2 Studio events.  I see the inline function for Split(), but this returns an array. 


How do you use this in conjuction with the Data Event to retrieve only the first item in the array which should be the last name?  Is there another method of doing this?

Put the Split function inside the Index function (found under the Lists category) to extract an element from the array.


Thanks Cyclops and DavidL!


I attempted to use the Left function along with the Find function, but that didn't appear to work finding the "," without the quotes.  I ended up just parsing the value outside of K2 in my InfoPath form which was a bit easier to do there.  I'll try the Index function method to see if that work as well.


Reply