cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jjohnson
Level: Powered On

Pull information from email subject

Hi all,

 

I have a flow that sends an email "Title" to a Sharepoint list if the condition is met. I have this part working fine. I would like to then extract a part of the title and update the same record with that data.

 

This is the title:

New Hire Notification - John Doe

 

I would like to extract "John Doe" from the title and update the list item column "New Employee Name" with John Doe.

 

I just don't know how to extract that name from the title. Can I do it with the SharePoint "Get Items filter query"? If so, what would the query look like? 

 

Thanks for any assistance.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Pull information from email subject

Hi @jjohnson ,

 

Please refer to screenshot below to create the flow:

1.png

 

The expression in the Compose as below:

last(split(triggerBody()?['subject'],'New Hire Notification - '))

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Pull information from email subject

Hi @jjohnson ,

 

Please refer to screenshot below to create the flow:

1.png

 

The expression in the Compose as below:

last(split(triggerBody()?['subject'],'New Hire Notification - '))

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jjohnson
Level: Powered On

Re: Pull information from email subject

Alice,

Thank you so much. I will test this in my environment and let you know if it works. Thanks again.

jjohnson
Level: Powered On

Re: Pull information from email subject

This worked! Thanks so much.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,940)