Skip to main content

I have a NAME field with a format of 'lastname, firstname'. How to get the lastname using AttributeCreator? I tried Substring() but couldn't find a IndexOf() function. Please help.

You can use a StringSearcher with a Regex.

Or with AttributeCreator try:

@Substring(@Value(NAME),0,@FindString(@Value(NAME),","))

0684Q00000ArKqGQAV.jpg


You can use a StringSearcher with a Regex.

Or with AttributeCreator try:

@Substring(@Value(NAME),0,@FindString(@Value(NAME),","))

0684Q00000ArKqGQAV.jpg

thank you so much! FindString works for me.


Reply