web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help-Extract text from...
Power Automate
Unanswered

Help-Extract text from email subject

(0) ShareShare
ReportReport
Posted on by

Hello all, 

 

I need help extracting specific sections from an email header. 

When running tests, all other parameters function properly, I just need to pull a specific section of an email subject. 

This image shows the number I'm looking to pull from my email subject

Screenshot 2022-07-06 170940.jpg

This image shows my flow at the moment. I need the parsed email subject in the "Job Name" section. 

Screenshot 2022-07-06 171049.jpg

 

Thank you for any help possible, it's greatly appreciated. 

Categories:
  • Shuvam-rpa Profile Picture
    897 Super User 2024 Season 1 on at

    Hello @jperry29 ,

     

    you have to use string expression of powerautomate, kindly check below youtube video to know more about string function used in powerautomate.

     

    https://www.youtube.com/watch?v=ApS_CI7Cvek

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @jperry29 ,

     

    Suppose I have below as my subject line and I need to extract the number.

     

    This is my test subject and this is my number #123674 this number needs to be extracted

     

    Find below steps to extract the number.

     

    1- I have taken subject inside compose action (Optional)

    vivekpande18_0-1657169641048.png

    I have taken hard coded value, you can take the dynamic value.

     

    2- Split the above text the get the exact number:

    vivekpande18_1-1657169759385.png

    Inputs : split(split(outputs('Compose_-_Subject'),'#')[1],' ')[0]

     

    Result of each split :

    1 - split(outputs('Compose_-_Subject'),'#')[1] 

    [

    "This is my test subject and this is my number #",

    "123674 this number needs to be extracted"

    ]

     

    2- split(split(outputs('Compose_-_Subject'),'#')[1],' ')

    [

    "123674",

    "this number needs to be extracted"
    ]

     

    3- split(split(outputs('Compose_-_Subject'),'#')[1],' ')[0]

    123674

     

    Thanks

    Vivek Pande

     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard