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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Mark incoming e-mails as spam

(1) ShareShare
ReportReport
Posted on by 12
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!
  • Verified answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    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
        formContext.data.entity.save();
    }
     
    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
     
  • MichaelVanDijk Profile Picture
    12 on at
    Thank you, Dengliang! Very helpful answer, I'll implement a solution like you did.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 19 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans