Extract First and Last name

I have an email that gives the first and last name like this:

Name: Keith Tessler;

I have been able to extract the first name with:
{{between_strings email.body “Name:” " " flags=“t”}}

But I can not get the last name. I have tried:
{{between_strings email.body {{custom.FirstName}} “;” flags=“t”}}
{{between_strings email.body “{{custom.FirstName}}” “;” flags=“t”}}

thanks

Try this:

{{between_strings email.body custom.FirstName “;” flags=“t”}}

Thanks for the after-hours response!

It returned: {{between_strings email.body custom.FirstName “;” flags=“t”}} as the contents of LastName. It did not process it. The email is test@cmit.mspiparser.com if you would like to take a look.

If you copy/pasted my example, it probably copied styled quotes instead of “real” quotation marks. Try typing my version instead of copy/paste.

That worked! - Thanks

1 Like

Odd {{between_strings email.body “Name:” " " flags=“t”}} is now giving me an empty string. This was working.

Hey @KeithTessler

Can you share the URL to the error from your history so I can see it in context?

Travis,

There is no error.

The email is alden-onboarding@cmit.mspiparser.com ( MSPintegrations). Look at step 8.

Thanks,

Keith