web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove caution message...
Power Automate
Unanswered

Remove caution message from email

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I need remove a caution message from an email when an user replies to the sent mail. This is not the case with all the user, only limited to few customers. Kindly help me to remove the message I don't want it to be captured.

And the thing is the caution message has an hyper link in it as encircled in the below image.

ganeshnr523_0-1679825560267.png

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Remove caution message from email

    Hi @Anonymous 

     

    Could you share how the same message looks like when viewed in html format when flow is ran from power automate ?

  • Community Power Platform Member Profile Picture
    on at
    Re: Remove caution message from email

    Hi @Nived_Nambiar 

    I'm not able post it. It's getting removed I guess for some reason.

    Is there any way you can help

     

    Thanks

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Remove caution message from email

    Hi @Anonymous 

     

    Could you paste it in the paragraph form

     

    While posting, click on HTML Source >  enter <pre></pre> , between enter the html text

    Nived_Nambiar_0-1679999202517.png

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Remove caution message from email

    Hi @Nived_Nambiar 

     

    <pre>"*** CAUTION ***: This Email failed a authentication security check (SPF or\nDMARC) which indicates it may not have come from a legitimate sender. Please use\ncaution when opening any message content such as an attachment or clicking a\nURL. More information on the SPF (Sender Policy Framework) and DMARC\n(Domain-based Authentication, Reporting and Conformance) security checks is\navailable on the Uptime\n[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttps*3A*2F*2Fuptime.com*2Fknowledges*2Fdetail*2FKB0078367%26data%3D05*7C01*7Cjennifer.solomon*40gmail.com*7C63455eefbdbc4712067a08db2c066029*7C93f33571550f43cfb09fcd331338d086*7C0*7C0*7C638152178151636079*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C%26sdata%3DfCjPQyqEZt33qjOsxRqIOTJQQQcPwlnT*2FnNQN*2BtdWD0*3D%26reserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!JZf9Yao!pn9yS9QYR4kqvZj9qI4R6xpChxJyDhmDtN1L2iviL_TgvaDvnWjbJz1UBwRjecl8Mo4p0iQMenUoqNGSEaYLc8YPLg%24&data=05%7C01%7Cganesh.nr%40gmail.com%7Cbca0119b648a4c5ff50b08db2ed04af1%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638155244361783520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nnfgsbcgem5V7xnOgHYsp0ylkWQWw46wMbGySvUbi4U%3D&reserved=0]\nsite."</pre>

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Remove caution message from email

    @Anonymous 

     

    I need html content of the message, because my current idea to remove it based on color +caution word 🙂

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Remove caution message from email

    Hi @Nived_Nambiar 

    Hope this helps

     

     

    <pre>{

        "host": {

            "connectionReferenceName""shared_conversionservice",

            "operationId""HtmlToText"

        },

        "parameters": {

            "Content""<p><html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\"><style>\r\n<!--\r\n@font-face\r\n\t{font-family:\"Cambria Math\"}\r\n@font-face\r\n\t{font-family:Calibri}\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\na:link, span.MsoHyperlink\r\n\t{color:#0563C1;\r\n\ttext-decoration:underline}\r\nspan.EmailStyle17\r\n\t{font-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext}\r\n.MsoChpDefault\r\n\t{font-family:\"Calibri\",sans-serif}\r\n@page WordSection1\r\n\t{margin:1.0in 1.0in 1.0in 1.0in}\r\ndiv.WordSection1\r\n\t{}\r\n-->\r\n</style></head><body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\" style=\"word-wrap:break-word\"><div class=\"WordSection1\"><p><strong><span style=\"font-family:&quot;Calibri&quot;,sans-serif; color:red; background:yellow\">*** CAUTION ***:</span></strong><strong><span style=\"font-family:&quot;Calibri&quot;,sans-serif; color:black; background:yellow\"> </span></strong><span style=\"color:red\">This Email failed a authentication security check (SPF or DMARC) which indicates it may not have come from a legitimate sender. Please use caution when opening any message content such as an attachment or clicking a URL. More information on the SPF (Sender Policy Framework) and DMARC (Domain-based Authentication, Reporting and Conformance) security checks is available on the <strong><span style=\"font-family:&quot;Calibri&quot;,sans-serif\"><a href=\"https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttps*3A*2F*2Fuptime.com*2Fknowledges*2Fdetail*2FKB0078367%26data%3D05*7C01*7Cjennifer.solomon*40dxc.com*7C63455eefbdbc4712067a08db2c066029*7C93f33571550f43cfb09fcd331338d086*7C0*7C0*7C638152178151636079*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C%26sdata%3DfCjPQyqEZt33qjOsxRqIOTJQQQcPwlnT*2FnNQN*2BtdWD0*3D%26reserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!JZf9Yao!pn9yS9QYR4kqvZj9qI4R6xpChxJyDhmDtN1L2iviL_TgvaDvnWjbJz1UBwRjecl8Mo4p0iQMenUoqNGSEaYLc8YPLg%24&amp;data=05%7C01%7Cganesh.nr%40gmail.com%7C93c22f4b997f4c42f54e08db2f808264%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638156001205217553%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KAdqitiPQB0G4uIrOh75VQYaSTIIlEmykPhknXwdHAw%3D&amp;reserved=0\" originalsrc=\"https://urldefense.com/v3/__https:/nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Fuptime.com*2Fknowledges*2Fdetail*2FKB0078367&amp;data=05*7C01*7Cjennifer.solomon*40dxc.com*7C63455eefbdbc4712067a08db2c066029*7C93f33571550f43cfb09fcd331338d086*7C0*7C0*7C638152178151636079*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&amp;sdata=fCjPQyqEZt33qjOsxRqIOTJQQQcPwlnT*2FnNQN*2BtdWD0*3D&amp;reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!JZf9Yao!pn9yS9QYR4kqvZj9qI4R6xpChxJyDhmDtN1L2iviL_TgvaDvnWjbJz1UBwRjecl8Mo4p0iQMenUoqNGSEaYLc8YPLg$\" shash=\"V/e1kByNkpuHJ2/SG6ws+8IAPQboI5LviXIYpZbZi++fZAxCj28P323BzeDE8ahUtKxLpvegiAJdMZTMYN110jjEEFrNUjI2gzh6MbLyxht7m6kb8opGrKvnNYULJ2iyoIlxio+MZWWKKQKJRRxOCqHkgQgqsWk//c3jkfDlZOs=\"><span style=\"color:red\">Uptime</span></a> </span></strong>site.</span><span lang=\"EN-IN\"></span></p><p class=\"MsoNormal\">&nbsp;</p></div><br><br>This message is transmitted to you by or on behalf of Company or one of its affiliates. It is intended exclusively for the addressee. The substance of this message, along with any attachments, may contain proprietary, confidential or privileged information or information that is otherwise legally exempt from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate any part of this message. If you have received this message in error, please destroy and delete all copies and notify the sender by return e-mail. Regardless of content, this e-mail shall not operate to bind Company or any of its affiliates to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. </body></html></p>"

        }

    }</pre>

  • Community Power Platform Member Profile Picture
    on at
    Re: Remove caution message from email

    Hi @Nived_Nambiar 

    I Unable to upload the content, I'm attaching the screenshot hope it helps.

     

    ganeshnr523_0-1680025698784.png

     

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Remove caution message from email

    Hi @Anonymous 

     

    forget to ask one thing, does this caution text is fixed always ?

  • Community Power Platform Member Profile Picture
    on at
    Re: Remove caution message from email

    Hi @Nived_Nambiar 

     

    It's not fixed always, it's configured differently for different users. But the color is red for all of the message.

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Remove caution message from email

    Hi @Anonymous 

     

    Just give a try this with this 

     

    Step 1: trigger to receieve email 

    Nived_Nambiar_0-1680089484457.png

     

     

    Step2: Compose action to retrive caution message to end from email body

     

    Nived_Nambiar_1-1680089719505.png

     

    expression used: 

    slice(triggerOutputs()?['body/body'],indexOf(triggerOutputs()?['body/body'],'span style="font-family:Calibri,sans-serif; margin:0px; background:yellow; color:red">'))
     
    Step 3: use compose action to slice the result from 2nd compose step to retrive only caution message
     
    Nived_Nambiar_2-1680089780350.png

     

    expression: slice(outputs('Compose'),0,add(indexOf(outputs('Compose'),'<br>'),1))

     

    Step 4: Use replace action to replace the text obtained from step 3 compose action in email body using compose action

    Nived_Nambiar_3-1680089848111.png

     

    expression: replace(triggerOutputs()?['body/body'],outputs('Compose_2'),'')

     

    Step 5: use html to text action to convert html to plain text (using output from step 4 )

     

    Nived_Nambiar_4-1680089918240.png

     

     

    Result was like below

     

    Input email body

     

    Nived_Nambiar_5-1680090011027.png

     

    Output email body

     

     

     
    Hi ,
    
    
    This is a test mail for the purpose of testing a flow. Kindly ignore it.
    
    
    
    
    
    
    
    
    
    
    Thanks,
    NN

     

    Hope it helps !

    Mark it as solution if it resolves your query !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard