Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Remove original message line in email response

Posted on by 15

Hello everyone,

I'm currently having an minor problem with email responses in Dynamics 365 online version where replying to any message will include this line "------------------- Original Message -------------------" before showing the original message underneath it.

Is there a way I can remove ------------------- Original Message ------------------- from the replies automatically?

I tried to use Javascript to do this, but I'm not able to set focus on the email description box.

Thank you

  • Derek Ip Profile Picture
    Derek Ip 15 on at
    RE: Remove original message line in email response

    Thank you for the help!

    It sort of worked for me, I wasn't able to make it work with the form onLoad but It did let work the way I want to when I set the event to the description field onChange. Not sure what I'm missing to make it work onLoad for my form.

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Remove original message line in email response

    Hi Derek lp,

    It is available to remove the "Original Message" with JavaScript code.

    We just need to get the value of "description" field in the email form and replace the "Original Message" with null.

    function onload_1(executionContext){
        var description_field=executionContext.getFormContext().getAttribute("description");
        if(description_field!=null){
            var content=description_field.getValue();
            content=content.replace("<br>------------------- Original Message -------------------<br>","");
            description_field.setValue(content);
        }
    }

    community322.png

    community322.png

    community333.png

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans