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
Community Support

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.
Regular Visitor

You can use substring to extract text between two defined characters



Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,104)