Showing results for 
Search instead for 
Did you mean: 
New Member

Use Power automate to pull values from an email for the title of a task

Hi all

I'm using Power automate to create tasks from flagged emails. 

Is there a way to pull out a set string of information from that form email? I'd like the title of the task to be the course code the student enrolled in. 


Every email has this phrase in it but the course numbers change:

"This letter is to officially inform you that you have been
registered in BIOL*1009 online." 


I've tried a few things but I would appreciate any help! #Newbie



Frequent Visitor

Working on a similar Flow now actually.  


You'll need to:

1. Convert the email from HTML to TEXT - There is a connector

2. Search the TEXT for the phrase "been registered in".  - This will give you a number.  This number represents the beginning of your phrase. (the "b" in "been") - Text Function Search Text connector

3.  Use the Text Functions substring connector to extract the text you want from the TEXT. 

You'll need to the give it a starting place which would be the location of Step 2 added to the number of characters of your search string the and a length of extraction, which from your example looks to be about nine characters.




I just realized that the find position will not work as the length of the student names will alter the position. Is there are a way to search the text for the phrase around it?



Frequent Visitor

You'll need to account for that.  That start position might change, but the start position relative the information you want will not.


Possible Solution:   Find the position before and after the name then shift ( add() )  the substring start position over by that amount.


It might be helpful if you could post more of the email.  

Helpful resources

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 (2,209)