Therein lies a big problem. There is probably a space between first and last name so you could split on space but what if the last name was something like ‘De Jesus’?
A name like ‘Ronaldo De Jesus’ would produce 3 elements from a split and you may only be planning for 2 so you would get First = Ronaldo, Last = De.
While it may be an issue for the sending system to place the name components properly in the HL/7 field, it may be easier if you ask them to separate the names with a comma then you split on comma.
Then something like ‘Ronaldo, De Jesus’ could be split on comma and result in what you want (you might have a leading or trailing space in one of the fields depending on formatting). That should work fine with non-prefixed last names as well.
If there can be middle names or initials, using a comma and insisting it be present even for a missing middle will also work.
In that case it may be likely the STRING Action Split function will be all you need.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.