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! How to remove 'R...
Power Automate
Unanswered

HELP! How to remove 'RE:' and 'FW:' from Email with Power Automate

(1) ShareShare
ReportReport
Posted on by 4

Hi all,

 

Im rather new to Power Automate and also new to this community. Just trying my luck here to seek some guidance from the community. Im having 2 issues.

 

First Issue: I am facing an issue whereby the email that I am forwarding/replaying to contains either 'RE: ' or 'FE: ' at the front of the subject header. I need help to remove this. Currently im using this expression based on what i found in the community, but it doesnt seem to work. 

replace(replace(triggerOutputs()?['body/subject'],'RE: ',''),'FW: ','')"

 

Second Issue: I am facing an issue whereby the email that I am forwarding/replaying to contains the old email tread in the email body. I need help to remove the content of the old email. I currently dont have a solution for this.

 

Can refer to below my current Flow.

AmirrulHakim_0-1693323560329.png

Greatly appreciate your help everyone. Good day to you guys.

 

Amirrul Hakim

 

Categories:
  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There, 

     

    You are correct with 'replace' function. Also make sure you are using correct path to fetch email subject.  You can trim white spaces after replace action.  for example - 

    trim(replace(replace(triggerOutputs()?['headers']['Subject'], 'RE: ', ''), 'FW: ', ''))

    For second issue, You can use the split function and pick the first part. This might not be foolproof but could work for many cases -

    split(triggerOutputs()?['body'], '--- Original Message ---')[0]

     

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishr

  • AmirrulHakim Profile Picture
    4 on at

    Thanks sandeepstw.

     

    First Issue: Using your new expression, I tried to run the flow and the result still showing 'RE: ' or 'FW: '. Its the same as before. Could it be that my current flow is wrong?

    AmirrulHakim_0-1693328151106.png

    Thank you

    Amirrul Hakim

     

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi, 

    Also, make sure you are using the correct path to fetch the email subject. So print it somewhere and see it is fetching subject to replace. 

  • AmirrulHakim Profile Picture
    4 on at

    Can refer to below picture. Below is the result of the flow when it runs. It still has the 'FW:' and the old email content.

    AmirrulHakim_0-1693446501930.png

    This is the current flow im using.

    AmirrulHakim_1-1693446566496.png

     

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi, 

     

    I can't see the picture. Did you attach a picture to it? 

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 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard