Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text manipulation

I am trying to extract some values from an email that contains JSON.  The issue I am facing is that someone has added text to the top and bottom of the email.  This therefore means that if I dont remove that text the JSON functions quite rightly error.  The body of the email is as folows:



You are receiving this email to notify you about new a signup activity.


Customer Data:


  "signup_type": "test",

  "status_id": "FCE892E2-4E07-4E09-A3B4-D26B7E36C607",

  "subscription_type": "mrr",

  "sfdc_account_id": "001500000145454KAA3"



To remove yourself from these emails, please talk to your manager.



How can I remove the text from the top and bottom so that I just have the JSON?


Community Support Team
Community Support Team

Re: Text manipulation

Hi @Anonymous,



I don't think there is a way to "Remove" the string from the Email body.

The Email Body received under Microsoft Flow would be in HTML format.

I originally thought that we could take use of the concat and the split function to work with the strings only, but the Body of the Email would contain the HTML tag, which makes it impossible for me to get it work.

You may take a look at the corresponding document for the functions used under Microsoft Flow, see if that could help:

Workflow Definition Language




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Text manipulation

You can use substring to extract text between two defined characters



Helpful resources


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 341 members 5,810 guests
Please welcome our newest community members: