
Announcements
I want to create a flow to pull just the text/plain information from an autogenerated email. The email body is a multi-part MIME message with a Content-Type: text/html part that is prettily formatted for human eyes in an email client, and a text/plain part that is in JSON and much better-suited to reading by a machine, e.g. something like this:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
{
"Id": "18BE1F64-B23F-7532-82B3-6FE2800154D9",
"user": {
"firstname": "Fred",
etc
----
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head>
etc
I understand that I can use the "Html to text" action to convert this html body to text and parse that, but this will be more fragile and complicated - if anything changes in the layout of the email it may break. Reading the JSON in the text/plain section would be much more resilient to new fields being added etc.
I cannot manage to get the "When a new email arrives (v3)" to get anything but the html part of the body, though.
Any ideas or suggestions?
Thanks!