Announcements
I would like to create a expression that grabs a persons first and last name from an email subject but I can't figure out how to do it.
The subject line would be similar to this "New Hire Notification - FirstName LastName"
Hi @usethegreymatte
You probably just want to use the replace expression
This returns the following:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.Cheers,Damien P.S. take a look at my new blog here
@DamoBird365, I get teh attached error when I use your expression, Here is my code: replace(outputs('Compose'),'New Hire Notification -')
@usethegreymatte
You're missing the final parameter ''.
replace(outputs('Compose'),'New Hire Notification -','')
Where Ar1 is the name of the variable
Here is another way to approach your issue. You can actually stop at my Get Name Compose action - the remaining actions just split out the first and last names.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 321 Super User 2026 Season 2
Mohsin Ali 244
Henil 102