cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Replace email subject with part of email body

I have an old system auto-generating emails.  The subject line is always the same - and I can't modify the sending system to do anything different.  Can Flow analyse the body of the email and modify the subject line of the email in the inbox?  

Currently all the emails have the same subject line and so is really difficult for the team to identify, prioritise etc.  Ideally I'd like to modify the subject based on the body so it is more meaningful.

 

Thank you.

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Replace email subject with part of email body

Hi @Anonymous,

 

Do you mean that when sending an email, the subject line is edited according to the content of the body?

I think this seems difficult to achieve with Flow, because first we need to get the content of the body of the message, but this message is still being edited, so theoretically it is not possible to get its content.

Since it is the system that automatically generates mail, Flow seems to be difficult to intervene in the generation of mail.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: Replace email subject with part of email body

Hi Barry,
Not sending. Another system is auto generating emails and sending them to a shared mailbox. The other system gives each email the same subject regardless of message content. I can't change that.
What I'm hoping to do is modify the subject line after the email has arrived in the inbox by analysing the body of the email. Even if I have to create a copy of the email (amend the subject) and archive the original.
Highlighted
Frequent Visitor

Re: Replace email subject with part of email body

You could parse a section of data from the original email body into a new or reply/forward email and send to yourself.

You would need to know exactly where the data is and split it each time.
There does not seem to be any modify email function to do this otherwise

Highlighted
Community Support
Community Support

Re: Replace email subject with part of email body

Hi @Anonymous,

 

You could use Html to text to get the content of the body of the email, then use the WDL function to extract part of the body text (representative content in the body) as the subject line, and then send the email to the email address.

The trouble here is who is the sender of Send an email action, because the sender of the email sent via the Send an email action is the connection account for this action.

If the sender of the mail sent by your system is uniform, this method is applicable here.

37.PNG

You can use the Export email-Create file method to save the initial file of the mail. You can also use another Connector instead of OneDrive.

38.PNG

If you need it, you could also delete the original email using the Delete email action, which should be considered carefully.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (7,542)