Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Splitting the body of an eMail

I have a WebForm that eMails the results to me,

I need to separate the relevant data out - the solutions I am trying (e.g. are not working, can somebody please advise.


Below is the body once HTML to Text and Split lines has been run.

"Caution: This email originated from outside of the organisation. Do not click",
"links or open attachments unless you recognise the sender and know the content",
"is safe. ======== Offline form data ======== 11-Digit Reference Number",
"49900000000 Company Name Bobs Burgers Contact Name (to receive email)",
"Rhys White Email Address (to receive request)"


Each piece of data comes after the field name - the reference number is a set length but none of the other peices of data have a set format or length.
11-Digit Reference Number

Company Name
Contact Name (to receive email)
Email Address (to receive request)

Community Champion
Community Champion

Could you show the real HTML body? It seems much easier is to parse HTML text. 


Welcome to my web site.

Regular Visitor

hi victor

Is there a 'Forum' where i can ask for help with my flows ?, similar to the forum that i sometimes contact for my Excel issues?

Kinldy let me knwo


Martin Argimon

Community Champion
Community Champion

You are already there. IMHO it's a best place to talk about Power Automate.


Welcome to my web site.

Thanks for looking

This is the HTML as seen in the 'When a new eMail Arrives in a shared mailbox (V2) trigger

Green highlights the text I need

{"headers":{"Pragma":"no-cache","Transfer-Encoding":"chunked","Retry-After":"15","Vary":"Accept-Encoding","x-ms-request-id":"88443f08-b34d-437a-9cb4-f7a33dc58b7d;aac6061b-a8de-45d9-b5b3-4aaa8e6868f2;344d8953-7994-4e5b-9bd0-2c8b0b3bf22e","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Cache-Control":"no-store, no-cache","Location":"","Set-Cookie":"ARRAffinity=034a92f9ba2fc4ecf4919720c4a64dda736d4b72182be442bf2b2ab6744078db;Path=/;HttpOnly;Secure;,ARRAffinitySameSite=034a92f9ba2fc4ecf4919720c4a64dda736d4b72182be442bf2b2ab6744078db;Path=/;HttpOnly;SameSite=None;Secure;","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","x-ms-apihub-obo":"false","Date":"Tue, 31 Jan 2023 16:36:25 GMT","Content-Type":"application/json; charset=utf-8","Expires":"-1","Content-Length":"2905"},"body":{"id":"AAMkAGIzZDgzYjBmLWE0ZGYtNDM5NC04OTRlLWUwYTA1NzE5NDIwMQBGAAAAAAD-1BgXLpVHRbrJc-Z64W0UBwBpFzZK7SDCSaD4tIIsFljHAAAAAAEMAABpFzZK7SDCSaD4tIIsFljHAAAZkBKLAAA=","receivedDateTime":"2023-01-31T16:31:50+00:00","hasAttachments":false,"internetMessageId":"<>","subject":"[ Customer message ] No subject","bodyPreview":"Caution: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.\r\n\r\n\r\n======== Offline form data ========\r\n11-Digit Reference Number\r\n 49908492433\r\n\r\nC","importance":"normal","conversationId":"AAQkAGIzZDgzYjBmLWE0ZGYtNDM5NC04OTRlLWUwYTA1NzE5NDIwMQAQAIYQq8cPgzNPg6pZAhqCFVQ=","isRead":false,"isHtml":false,"body":"Caution: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.\r\n\r\n\r\n======== Offline form data ========\r\n11-Digit Reference Number\r\n 49911111111\r\n\r\nCompany Name\r\n Bobs Burgers Ltd\r\n\r\nContact Name (to receive email)\r\n Rhys White\r\n\r\nEmail Address (to receive request)\r\n\r\n\r\n\r\n\r\n\r\n","from":"","toRecipients":"","replyTo":"","attachments":[]}}

Community Champion
Community Champion

Aha - it' s a plain text message.

Split this text by \r\n\r\n to get the array of strings.

if you wish to find the value of  the Company Name, iterate the array to find the string that starts with "Company Name" and split it by \r\n. The second element (with index 1) will be "Bobs Burgers Ltd".


Welcome to my web site.

Cheers Victor, will look at this in the next few days.

Very clear it's not HTML - missed that.


I've just attempted this and can't work it out ... this isn't my first time with Power Automate or Coding but it is my first time to build something like this in Power Automate - I am not totally familiar with all the functions.

As much help as can be given would be beneficial.


Helpful resources


Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started:   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today!  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,218)