biztalkbiztalk-2010biztalk-2013

how to extract last name?


Is there a functoid that specializes in splitting a string based on a delimitter?

Let's say I have a Fullname field that looks like so:

Gordon, Liza
Shiksa, Nancy
Shkura, Lola
Sukovich, Matthew

How would I extract last name?

My desired output would look like this:

Gordon
Shiksa
Shkura
Sukovich

Solution

  • There's no single functoid that will do this. You have two options:

    Option 2 with 3 functoids: BizTalk Map

    String Find Inputs:

    Subtraction Inputs:

    String Extract Inputs:

    Connect the output of String Extract to your output element. The subtraction is necessary since BizTalk counts string positions starting at 1 and you don't want the comma part of the output.