Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I'm wondering how I can achieve that mails will be deleted in a mail account when they have been inserted into CRM by the email router!? The only way I've found so far is to use forwarding, but this is not really an ideal solutions in my case.
You can edit the Microsoft.Crm.Tools.EmailAgent.Xml File and set <DeleteEMail>true</<DeleteEMail>
Perfect, I wasn't aware of this file. But it still doesn't work. I've changed the settings and restartet the router. Mail is still available in mail account. Do I have to do something else?
It should work. Does the E-Mail Router account has full access to the postoffice-box?
I've double checked by logging in with the router account to Outlook web app, switched to the box and deleted a mail. This all is working fine. Also I'll check the events while sending a test mail and no errors are shown. Mail gets assigned, but not deleted.
Ok, I've found the reason. When I set the parameters and restart the router it resets my settings to "false". Problem is: I don't know why.
I've researched a bit on the web and it seems these settings are only valid for forwarding mail boxes and therefore will be reset after router restarts and validates the XML file.
I there no way to delete mails for "regular" mail accounts?
Ok, there isn't as I found out.
I just want to post an update to this thread. I'm experiencing the exact same problem. The really strange thing is that if you change the DeleteEmails parameter to true in the Microsoft.Crm.Tools.EmailAgent.xml file and DONT restart the e-mail router service the tracked e-mails actually are deleted from the tracked mail box. As soon as you restart the e-mail router service the configuration is reset back to false in the file and the router stops deleting the tracked e-mails.
In other words, the functionality actually works (not only for forwarding mail boxes) if you can avoid restarting the service. In real life you properly can't and it's a hassle to always have to remember to change the configuration file after the restart. WHYYY MS... WHYYY?? buh huh.
Please stop the email router servie.
2) Change the following field in EmailAgent.xml
DeleteEmails = True
3) Save the file and Restart the service
You seem to know about this email router, are you able to offer any guidance on my post.
OK. So the difference here is that that deploymentId tag has to be changed from at guid to "Manual"? Seems odd? Is that an allowed value?
Here is an example from my emailagent.XML
Do you want me to change that to:
I changed my profile name from router to my real name.
Yes. We have to change the deploymentId="Manual", otherwise every time router refresh replace the delete emails value to false. I have been using this from last 3 years and working fine. I used in 2011 and using in 2013.
Email service stop and start is key also here.
Business Applications communities