cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
usethegreymatte
Frequent Visitor

Parsing text from email subject

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"

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Screen Shot 2021-04-20 at 2.47.18 PM.png

Where Ar1 is the name of the variable

View solution in original post

5 REPLIES 5
DamoBird365
Super User
Super User

Hi @usethegreymatte 

 

You probably just want to use the replace expression

 

DamoBird365_0-1618934013646.png

 

This returns the following:

DamoBird365_1-1618934051779.png

 

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 -')

 

Screen Shot 2021-04-20 at 2.32.44 PM.png

@usethegreymatte 

 

You're missing the final parameter ''.

 

replace(outputs('Compose'),'New Hire Notification -','')

 

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

Screen Shot 2021-04-20 at 2.47.18 PM.png

Where Ar1 is the name of the variable

@usethegreymatte 

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.

image.pngimage.png

image.png

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,620)