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 with Email Subjec...
Power Automate
Answered

Help with Email Subject String Extraction between two Delimiters

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Good morning Power Automate gurus!

 

I'm trying to build my first flow and could use some assistance.

 

I need to extract some content between two delimiters of an Email Subject. I have taken some guidance from here (https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-split) where the article talks about Substring Extraction.

 

In my case, the Email Subject is: "Refresh failed: Your Dataflow Name ABC123 dataflow couldn’t be refreshed"

 

Starting delimiter is: "Refresh failed: Your "

Ending delimited is: " dataflow couldn’t be refreshed"

Text to extract is "Dataflow Name ABC123" (which changes depending upon what has failed.

 

In Power Automated, I'm using "SharePoint Create Item" and trying to use the following string to log what has failed, but I get an error saying "Expression is invalid". 

 

 

First( Split( Last( Split( "triggerOutputs()?['body/subject']", "Refresh failed: Your Open " ) ).Result, " dataflow couldn’t be refreshed" ) ).Result

 

 

Can anyone please suggest that I need to do to fix this?

 

Screenshot.jpg

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    Use the below expression

     

    first(split(last(split(triggerOutputs()?['body/subject'],'Refresh failed: Your ')),'dataflow couldn’t be refreshed'))

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much @abm, that worked perfectly!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard