cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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
Community Support

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
Community Support

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

Alice,

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

This worked! Thanks so much.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (65,953)