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 :
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!
I have the same question (0)
  • Verified answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Mark incoming e-mails as spam
    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
    Mark incoming e-mails as spam
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 54

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 32 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans