Skip to main content



No record found.

Customer Service forum

Mark incoming e-mails as spam

Posted on by 25
We are currently in the proces of moving our customer service e-mails from Freshdesk to Dynamics cases. We determine which e-mails become cases by converting them from the queue.
In Freshdesk (and Outlook), we have an option to mark incoming e-mails as spam. I don't see this option in Dynamics 356, is there any way for us to do this without creating our own Spam button in combination with Flows?
Thank you in advance for your help!
  • MichaelVanDijk Profile Picture
    MichaelVanDijk 25 on at
    Mark incoming e-mails as spam
    Thank you, Dengliang! Very helpful answer, I'll implement a solution like you did.
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Mark incoming e-mails as spam
    There is no out-of-the-box way to mark incoming email as spam.
    Therefore, I'm afraid you'll have to create flows or create custom buttons for that.
    In my testing, I added a Yes/no field to the Email form to mark the email as spam or not.
    Then added a custom button that when clicked will set the field to Yes.
    The code executed by the button is as follows.
    function MarkAsSpam(primaryControl) {
        var formContext = primaryControl;
        //Set the field to Yes
        var spam = formContext.getAttribute("cra21_spam").setValue(true);
        //Save the current record;
    The final result is shown below.
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
    Best Regards,
    Dengliang Li

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans