cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Removing Forwarders information

Hi There, I have a flow that processes a table forwarded to me by email from several sources, this works the majority of the time however on some occasions information included by the by the person forwarding the email to me such as Signatures and the such like interfere with the flow. So My question: Is there a way to ignore all information but that in the original email body, effectively a way to strip all the forwarders additions out of the body.

 

Thank you for taking the time to read this. if you need any more information then please let me know as i've tried on my own and i just cannot work out how to do it.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi there, 

 

I've run the email you've forwarded me through it, and with a few tweaks, it does the trick. 


Rhiassuring_0-1650095364039.png

 

 

Of course this doesn't JUST get you the table - but you've now got the appropriate chunk without all the encoding since the wording should be pretty standard. It also means we don't need to worry about other tables that might've been somewhere in the forward string.

 

You could now grab everything between <table and </table> pretty confidently.  Find text position of both, and just like before, sub the prior from the latter. 

Cheers,

Rhia

 

 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



View solution in original post

10 REPLIES 10

Hi there, 

 

You mention that they forward a table - is this a pasted table in the email body itself, and not an attachment? Is there any standard "ending" to these emails that are sent?  In emails sent, a lot of times there will be a big --------- between the most recent response and all else. If this is the case with your email, we could tell Power Automate to yeet everything after & including that big hyphen line. 

Curious to hear more about your email / table specifics.

 

Cheers,

 

Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Hi Rhiassuring. 

The code below is an example of the original emails i get.

 

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style>
    <!--
    @font-face
        {font-family:"Cambria Math"}
    @font-face
        {font-family:Calibri}
    @font-face
        {font-family:Cambria}
    @font-face
        {font-family:Tahoma}
    p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
    span.EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:windowtext}
    .MsoChpDefault
        {font-size:10.0pt}
    @page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
    div.WordSection1
        {}
    -->
    </style>
    </head>
    
    <body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
        <div class="WordSection1">
            <p class="MsoNormal"><span style="">&nbsp;</span></p>
            <p class="MsoNormal"><span style="">&nbsp;</span></p>
            <div>
                <div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
                    <p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Rick
                            &lt;rick@anyjobltd.org&gt; <br><b>Sent:</b> 25 March 2022 02:14<br><b>To:</b>
                            'thebigjob@allbigjobs.com'
                            &lt;thebigjob@allbigjobs.com&gt;<br><b>Subject:</b> Work Order Status</span></p>
                </div>
            </div>
            <p class="MsoNormal">&nbsp;</p>
            <div>
                <div id="x_divRplyFwdMsg">
                    <div>
                        <p class="MsoNormal">&nbsp;</p>
                    </div>
                </div>
                <div>
                    <p><span lang="EN-US">Please find enclosed below detail of your recently raised call:- </span></p>
                    <p><span lang="EN-US">WO# R2012051 Work Order Created</span></p>
                    <p><span lang="EN-US">&nbsp;</span></p>
                    <table class="MsoNormalTable" border="1" cellpadding="0" width="601" style="width:450.75pt">
                        <tbody>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><a name="x_x__Hlk3181679"><b><span style="font-family:&quot;Cambria&quot;,serif">Reference
                                                    Number:</span></b></a></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">R2012051</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reported Date:</span></b></p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Feb 23 2022 3:58PM</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reporter Name:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Mr Right</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Priority:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">P4</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Estimated
                                                Completion:</span></b></p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Mar 23 2022 3:58PM</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Actual&nbsp;Completion:</span></b>
                                    </p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">N/A</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Building:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Any Building</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Location:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">VARI </span></p>
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">VARIOUS AREAS</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Problem:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Grounds Maintenance (Shrub
                                            Clearance / Litter Picking / Weeding etc):&gt;BN0039A1the grass outside needs
                                            trimming </span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Detail:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt"></td>
                            </tr>
                        </tbody>
                    </table>
                    <p>&nbsp; </p>
                    <p><span style="font-family:&quot;Times New Roman&quot;,serif">If you require any additional
                            information, please call Someone else or email on: </span></p>
                    <p>&nbsp;</p>
                    <p style="margin-bottom:8.0pt; line-height:105%"><span style="font-family:&quot;Tahoma&quot;,sans-serif">Anyjob<span style="color:#435254"> Limited,
                                Registered Office: </span>Your<span style="color:#435254"> House, </span>My<span style="color:#435254"> Place, London, W1</span>A<span style="color:#435254"> </span>2G<span style="color:#435254">B, registered in England and Wales No. </span>6561248<span style="color:#435254">.Regulated by the </span>myself<span style="color:#435254">.<br>&nbsp;<br>This communication is from </span>Anyjob<span style="color:#435254"> Limited or one of its associated/subsidiary
                                companies.<br>&nbsp;<br>This communication contains information which is confidential and
                                may be privileged. If you are not the intended recipient, please contact the sender
                                immediately.<br>&nbsp;<br></span>Remember who you send this too<span style="color:#435254">,
                            </span>may not send it on<span style="color:#435254">, </span>so dont<span style="color:#435254"> rely on its contents in any way whatsoever.<br>&nbsp;<br>Reasonable
                                care has been taken to ensure that this communication (and any attachments or hyperlinks
                                contained within it) is free from computer viruses.<br>No responsibility is accepted by
                            </span>Anyjob<span style="color:#435254"> Limited or its associated/subsidiary companies and the
                                recipient should carry out any appropriate virus checks.<br>&nbsp;<br>Details about the
                                personal data </span>Anyjob<span style="color:#435254"> Limited collects and why, as well as
                                your data privacy rights under applicable law, are available&nbsp;</span><span style="color:#003F2D">at&nbsp;</span></span>the&nbsp; Back door</p>
                </div>
            </div>
        </div>
        <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br><br>
            <hr style="border:none; color:#909090; background-color:#B0B0B0; height:1px; width:99%">
            <table style="border-collapse:collapse; border:none">
                <tbody>
                    <tr>
                        <td style="border:none; padding:0px 15px 0px 8px"><a href="https://www.avast.com/antivirus"><img border="0" src="./output 1-1_files/avast-mail-stamp.png" alt="Avast logo">
                            </a></td>
                        <td>
                            <p style="color:#3d4d5a; font-family:&quot;Calibri&quot;,&quot;Verdana&quot;,&quot;Arial&quot;,&quot;Helvetica&quot;; font-size:12pt">
                                This email has been checked for viruses by Avast antivirus software. <br><a href="https://www.avast.com/antivirus">www.avast.com</a> </p>
                        </td>
                    </tr>
                </tbody>
            </table><br><a href="file:///C:/Users/rixxc/Desktop/output%201-1.html#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a>
        </div>
    
    
    </body></html>

 A Screenshot of the Above code. My Flow processes this fine when its sent directly from source However when this same email is forwarded rather than me getting it directly the forwarders information with possible other tables used for Signatures messes it all up. Hope that helps 

screen.png

Hi there, 

I copied your  code above into a variable, and tested it out with using a substring. I was able to get the table out following this pattern:

Rhiassuring_1-1650046283776.png

 

 

The formula on the last Compose is:  

 

substring(variables('txtHTML'), outputs('Find_text_position_-_TableStart)?['body'], sub(outputs('Find_text_position_-_TableEnd')?['body'],outputs('Find_text_position_-_TableStart')?['body']))
 
Basically, it's just saying "find everything in the HTML from the starting position of where we found the "TableStart" data, then, subtract TableEnd position from TableStart position to tell us the length (number of characters) we need to return."
 

Of course, it'd have to be the same every time. I used your "If you require any additional" as a way to grab the end, but you could use specific table ending data.

Running this flow, I get this returned:

 

 <table class="MsoNormalTable" border="1" cellpadding="0" width="601" style="width:450.75pt">
                        <tbody>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><a name="x_x__Hlk3181679"><b><span style="font-family:&quot;Cambria&quot;,serif">Reference
                                                    Number:</span></b></a></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">R2012051</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reported Date:</span></b></p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Feb 23 2022 3:58PM</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reporter Name:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Mr Right</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Priority:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">P4</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Estimated
                                                Completion:</span></b></p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Mar 23 2022 3:58PM</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Actual&nbsp;Completion:</span></b>
                                    </p>
                                </td>
                                <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">N/A</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Building:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Any Building</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Location:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">VARI </span></p>
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">VARIOUS AREAS</span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Problem:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><span style="font-family:&quot;Cambria&quot;,serif">Grounds Maintenance (Shrub
                                            Clearance / Litter Picking / Weeding etc):&gt;BN0039A1the grass outside needs
                                            trimming </span></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                    <p><b><span style="font-family:&quot;Cambria&quot;,serif">Detail:</span></b></p>
                                </td>
                                <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt"></td>
                            </tr>
                        </tbody>
                    </table>
                    <p>&nbsp; </p>
                    <p><span style="font-family:&quot;Times New Roman&quot;,serif">


Does this help?

 

Cheers,

 

Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Hi Thanks for the reply, the code i pasted is actually code that my flow processes correctly, i have knocked together another example that may demonstrate the problem as it is forwarded to my with a signature from the forwarder. 

 

 

<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta content="Microsoft Word 15 (filtered medium)"><style>
    <!--
    @font-face
        {font-family:"Cambria Math"}
    @font-face
        {font-family:Calibri}
    @font-face
        {font-family:Cambria}
    @font-face
        {font-family:Tahoma}
    p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
    a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
    p.xmsonormal, li.xmsonormal, div.xmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
    .MsoChpDefault
        {font-size:10.0pt}
    @page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
    div.WordSection1
        {}
    -->
    </style>
    </head>
    
    <body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
        <div class="WordSection1">
            <p class="MsoNormal">&nbsp;</p>
            <div id="divRplyFwdMsg">
                <p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Rick &lt;<a
                            href="mailto:Rick@anyjob.com">Rick@anyjob.com</a>&gt;<br><b>Sent:</b> 15 April 2022
                        20:19<br><b>To:</b> Rick Cobern &lt;<a
                            href="mailto:Rick@anyjob.com">Rick@anyjob.com</a>&gt;<br><b>Subject:</b>
                        FW: Work Order Status</span> </p>
                <div>
                    <p class="MsoNormal">&nbsp;</p>
                </div>
            </div>
            <div>
                <div>
                    <p class="xmsonormal">Just a demo with some fictional signature details.</p>
                    <p class="xmsonormal">&nbsp;</p>
                    <p class="xmsonormal">&nbsp;</p>
                    <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
                        style="border-collapse:collapse">
                        <tbody>
                            <tr>
                                <td width="113"
                                    style="width:84.8pt; border:none; border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt">
                                    <p class="xmsonormal"><a href="http://www.cwusec.org.uk/"><span
                                                style="font-size:10.0pt; text-decoration:none"><img border="0" width="184"
                                                    height="88" id="x_Picture_x0020_1"
                                                    src="cid:image005.jpg@01D85106.2377B150"
                                                    style="width:1.9166in; height:.9166in"></span></a></p>
                                </td>
                                <td width="246"
                                    style="width:184.3pt; border:none; border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt">
                                    <p class="xmsonormal"><b><span style="font-size:12.0pt; color:#D70066">Rick </span></b>
                                    </p>
                                    <p class="xmsonormal" style="margin-bottom:12.0pt"><span
                                            style="font-size:12.0pt; color:#333333">Co-ordinator</span></p>
                                    <p class="xmsonormal"><span style="font-size:12.0pt; color:#333333">M: 07444 922126 O:
                                            01956 744444</span></p>
                                    <p class="xmsonormal"><span style="font-size:12.0pt; color:#333333">&nbsp;</span></p>
                                    <p class="xmsonormal"><span style="color:#0070C0"><a
                                                href="mailto:rick@nowherereal.com">rick@nowherereal.com</a></span></p>
                                    <p class="xmsonormal"><span style="color:#0070C0">&nbsp;</span></p>
                                    <p class="xmsonormal"><span style="color:#333333">&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
                                </td>
                                <td width="208" style="width:155.9pt; padding:0cm 5.4pt 0cm 5.4pt">
                                    <p class="xmsonormal"><a href="https://www.cwu.org/" title="https://www.cwu.org/"><span
                                                style="color:windowtext; text-decoration:none"><img border="0" width="199"
                                                    height="95" id="x_Picture_x0020_2"
                                                    src="cid:image006.jpg@01D85106.2377B150"
                                                    style="width:2.0729in; height:.9895in"></span></a></p>
                                </td>
                                <td width="113" style="width:3.0cm; padding:0cm 5.4pt 0cm 5.4pt"></td>
                            </tr>
                        </tbody>
                    </table>
                    <p class="xmsonormal">&nbsp;</p>
                    <p class="xmsonormal">&nbsp;</p>
                    <p class="xmsonormal">&nbsp;</p>
                    <p class="xmsonormal">&nbsp;</p>
                    <div>
                        <div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
                            <p class="xmsonormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Rick &lt;<a
                                        href="mailto:rick@nowherereal.com">rick@nowherereal.com</a>&gt; <br><b>Sent:</b> 30
                                    March 2022 12:16<br><b>To:</b> 'Flowtests@Nowherereal.com' <br><b>Subject:</b> Work
                                    Order Status</span></p>
                        </div>
                    </div>
                    <p class="xmsonormal">&nbsp;</p>
                    <div>
                        <div>
                            <p class="xmsonormal">&nbsp;<span lang="EN-US">Please find enclosed below detail of your
                                    recently raised call:- </span></p>
                            <p><span lang="EN-US">WO# R2012051 Work Order Created</span></p>
                            <p><span lang="EN-US">&nbsp;</span></p>
                            <table class="MsoNormalTable" border="1" cellpadding="0" width="601" style="width:450.75pt">
                                <tbody>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><a name="x_x_x__Hlk3181679"><b><span
                                                            style="font-family:&quot;Cambria&quot;,serif">Reference
                                                            Number:</span></b></a></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">R2012051</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reported
                                                        Date:</span></b></p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Feb 23 2022 3:58PM</span>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reporter
                                                        Name:</span></b></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Mr Right</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Priority:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">P4</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Estimated
                                                        Completion:</span></b></p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Mar 23 2022 3:58PM</span>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span
                                                        style="font-family:&quot;Cambria&quot;,serif">Actual&nbsp;Completion:</span></b>
                                            </p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">N/A</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Building:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Any Building</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Location:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">VARI </span></p>
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">VARIOUS AREAS</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Problem:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Grounds Maintenance
                                                    (Shrub Clearance / Litter Picking / Weeding etc):&gt;BN0039A1the grass
                                                    outside needs trimming </span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Detail:</span></b></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p class="xmsonormal">No Detail</p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <p>&nbsp; </p>
                            <p><span style="font-family:&quot;Times New Roman&quot;,serif">If you require any additional
                                    information, please call Someone else or email on: </span></p>
                            <p>&nbsp;</p>
                            <p style="margin-bottom:8.0pt; line-height:105%"><span
                                    style="font-family:&quot;Tahoma&quot;,sans-serif">Anyjob<span style="color:#435254">
                                        Limited, Registered Office: </span>Your<span style="color:#435254"> House,
                                    </span>My<span style="color:#435254"> Place, London, W1</span>A<span
                                        style="color:#435254"> </span>2G<span style="color:#435254">B, registered in England
                                        and Wales No. </span>6561248<span style="color:#435254">.Regulated by the
                                    </span>myself<span style="color:#435254">.<br>&nbsp;<br>This communication is from
                                    </span>Anyjob<span style="color:#435254"> Limited or one of its associated/subsidiary
                                        companies.<br>&nbsp;<br>This communication contains information which is
                                        confidential and may be privileged. If you are not the intended recipient, please
                                        contact the sender immediately.<br>&nbsp;<br></span>Remember who you send this
                                    too<span style="color:#435254">, </span>may not send it on<span style="color:#435254">,
                                    </span>so dont<span style="color:#435254"> rely on its contents in any way
                                        whatsoever.<br>&nbsp;<br>Reasonable care has been taken to ensure that this
                                        communication (and any attachments or hyperlinks contained within it) is free from
                                        computer viruses.<br>No responsibility is accepted by </span>Anyjob<span
                                        style="color:#435254"> Limited or its associated/subsidiary companies and the
                                        recipient should carry out any appropriate virus checks.<br>&nbsp;<br>Details about
                                        the personal data </span>Anyjob<span style="color:#435254"> Limited collects and
                                        why, as well as your data privacy rights under applicable law, are
                                        available&nbsp;</span><span style="color:#003F2D">at&nbsp;</span></span>the&nbsp;
                                Back door</p>
                        </div>
                    </div>
                </div>
                <div id="x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
                    <p class="MsoNormal" style="margin-bottom:12.0pt">&nbsp;</p>
                    <div class="MsoNormal" align="center" style="text-align:center">
                        <hr size="1" width="99%" noshade="" align="center" style="color:#909090">
                    </div>
                    <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
                        style="border-collapse:collapse">
                        <tbody>
                            <tr>
                                <td style="padding:0cm 11.25pt 0cm 6.0pt">
                                    <p class="MsoNormal"><a href="https://www.avast.com/antivirus"><span
                                                style="text-decoration:none"><img border="0" width="90" height="33"
                                                    id="_x0000_i1029"
                                                    src="http://static.avast.com/emails/avast-mail-stamp.png"
                                                    alt="Avast logo" style="width:.9375in; height:.3437in"></span></a></p>
                                </td>
                                <td style="padding:.75pt .75pt .75pt .75pt">
                                    <p><span style="font-size:12.0pt; color:#3D4D5A">This email has been checked for viruses
                                            by Avast antivirus software. <br><a
                                                href="https://www.avast.com/antivirus">www.avast.com</a> </span></p>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <p class="MsoNormal"><br><br></p>
                </div>
            </div>
        </div>
    </body>
    
    </html>

I have just sent you the body. Thanks 

Hi there, 


I dropped that into my txtHTML example and it seems to have worked as well. This is the output:

 <table class="MsoNormalTable" border="1" cellpadding="0" width="601" style="width:450.75pt">
                                <tbody>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><a name="x_x_x__Hlk3181679"><b><span
                                                            style="font-family:&quot;Cambria&quot;,serif">Reference
                                                            Number:</span></b></a></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">R2012051</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reported
                                                        Date:</span></b></p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Feb 23 2022 3:58PM</span>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Reporter
                                                        Name:</span></b></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Mr Right</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Priority:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">P4</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Estimated
                                                        Completion:</span></b></p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Mar 23 2022 3:58PM</span>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span
                                                        style="font-family:&quot;Cambria&quot;,serif">Actual&nbsp;Completion:</span></b>
                                            </p>
                                        </td>
                                        <td style="padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">N/A</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Building:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Any Building</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Location:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">VARI </span></p>
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">VARIOUS AREAS</span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Problem:</span></b>
                                            </p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><span style="font-family:&quot;Cambria&quot;,serif">Grounds Maintenance
                                                    (Shrub Clearance / Litter Picking / Weeding etc):&gt;BN0039A1the grass
                                                    outside needs trimming </span></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="42%" style="width:42.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p><b><span style="font-family:&quot;Cambria&quot;,serif">Detail:</span></b></p>
                                        </td>
                                        <td width="58%" style="width:58.0%; padding:5.25pt 5.25pt 5.25pt 5.25pt">
                                            <p class="xmsonormal">No Detail</p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <p>&nbsp; </p>
                            <p><span style="font-family:&quot;Times New Roman&quot;,serif">

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Ok Rhia I must be doing something wrong, Im new to all this so please be patient with me. Can you expand your flow so i can see where im going wrong, although i am trying from When email arrives rather than using the HTML but that shouldn't make a difference. If you don't mind i will copy your code and make a fresh Flow.

 

Kind Regards

Rick

No problem at all @DoctaShed - 

Rhiassuring_0-1650064580823.png

It'll be hard for me to replicate the incoming email from the direct source, unless you want to shoot one over to me for me to try out. If you're comfortable with that, let me know, and I'll give you my email address.

Cheers,

Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



@Rhiassuring  its more about if you are comfortable than me, i'm the one who needs the help. but i would be happy to send you an email with the example, who new it would be so complicated to get a table from an email into a spreadsheet...LOL huge learning curve for me.. 

 

 

I Must have done something wrong  because your flow output is exactly what i want but i cant get it to work. can you see anything i've done wrong..

flow code output.pngflow code.png

Exact Expression I used.

substring(variables('txtHTML'), outputs('Find_text_position_-_TableStart')?['body']?['body'], sub(outputs('Find_text_position_-_TableEnd')?['body']?['body'], outputs('Find_text_position_-_TableStart')?['body']?['body']))

Hi there, 

 

I've run the email you've forwarded me through it, and with a few tweaks, it does the trick. 


Rhiassuring_0-1650095364039.png

 

 

Of course this doesn't JUST get you the table - but you've now got the appropriate chunk without all the encoding since the wording should be pretty standard. It also means we don't need to worry about other tables that might've been somewhere in the forward string.

 

You could now grab everything between <table and </table> pretty confidently.  Find text position of both, and just like before, sub the prior from the latter. 

Cheers,

Rhia

 

 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



@Rhiassuring   You made it look so Easy, Thank you so much, that gives me something I can use in my flow to stop the headaches.

 

Again thank you so much.

 

Rick

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (2,723)