D365Forge

Catalogue › Customer Service › email-to-case

Email-to-case

Department
Customer Service
Stages
Initiate, Implement, Prepare
Modules
Customer Service
Status
reviewed
Copilot Cowork
Customer Service plugin for Copilot Cowork, or this skill on its own: Download SKILL.md
Claude Code
/plugin install customer-service@d365forge
Licence
CC BY 4.0, by Simon Foote, Robert Peledie

For many service desks email is still the busiest channel, and email-to-case is where the most visible defects appear in the first week after go-live. Duplicate cases from customer replies, cases raised by out-of-office messages and delivery failures, internal colleagues copied in who generate cases of their own, and a mailbox that silently stopped synchronising are all common, and all avoidable.

The root cause is usually that the project configured the record creation rule and tested it with a handful of tidy, single-message emails. Real support mail arrives as long threads, forwards, replies with edited subjects, and messages copied to several support addresses at once.

When to use

Not this skill: customer-service:case-lifecycle-design for the reopen rule and statuses, customer-service:queues-and-routing for what happens after the case lands in a queue, sales:outlook-and-teams-integration for users' own Outlook tracking and synchronisation.

Questions to ask first

  1. Which addresses receive support email, and who replies from them? Each becomes a queue mailbox, and replies must come from the case to keep threads linked.
  2. Should every inbound email create a case, or only email from known customers? This shapes the rule conditions and the handling of unknown senders.
  3. How do customers reply, forward and copy in other people? This decides which duplicate controls matter most.
  4. What should a reply to a resolved case do? The answer must match the reopen rule from customer-service:case-lifecycle-design.
  5. Do emails carry sensitive data or large attachments? This drives attachment limits, storage and retention decisions.

Approach

Email-to-case has three layers, and problems are much easier to fix when you know which layer owns them. Mail flow is Exchange Online mailboxes synchronised into Dataverse through server-side synchronization, with each support mailbox linked to a queue. Record creation is the automatic record creation and update rule that turns an incoming email into a case or attaches it to an existing one. Handling is everything after that, covered by neighbouring skills.

  1. Set up mailboxes properly. Use a dedicated mailbox per support queue, approve and test each one, and agree with the Microsoft 365 administrator who owns mailbox approval, permissions and alerts when synchronisation fails. A failed mailbox stops case creation without anyone noticing.

  2. Decide which emails become cases. Configure conditions so that out-of-office replies, delivery failures, internal senders and known junk do not create cases. Decide whether unknown senders get a new contact and a case or go to a triage queue; on business-to-business desks, a triage queue usually avoids polluting contacts.

  3. Stop duplicates from reply chains. Most duplicates are replies that the system failed to link to the original case. Keep tracking tokens or conversation correlation enabled (check current Microsoft Learn documentation for the matching options in your version), make sure agents reply from the case so outgoing mail carries the link, and set the rule so replies on an active case update it rather than raise a new one.

  4. Handle resolved cases and shared threads. Configure what a reply to a resolved case does, in line with the agreed reopen window. When a customer copies two support addresses, both mailboxes receive the message, so decide which one owns the thread and test that only one case results.

  5. Map the fields. Decide how sender, subject, body, keywords and attachments populate the case, and which values routing depends on. Keep parsing logic in the rule or a small flow rather than custom code unless volume or complexity demands it.

  6. Protect the data. Attachments consume storage and may carry personal or sensitive data. Agree size limits, blocked file types and retention with security-compliance:data-retention, and take any question on lawful processing of email content to the organisation's DPO or legal adviser.

  7. Test with real patterns, then switch over. Build a test pack of anonymised real emails (auto-replies, long threads, forwards, edited subjects, multiple recipients, large attachments) and run it through a test mailbox. Plan the cutover of mail flow, including how replies to old helpdesk ticket references are handled once the legacy system stops.

Outputs

Scale notes

SMB

Usually one or two shared mailboxes feed one or two queues, with the consultant configuring the rule and the Microsoft 365 administrator approving mailboxes. Keep the rule simple. Do not skip auto-reply and internal-sender exclusions, duplicate testing with real threads, or an alert when synchronisation fails.

Enterprise

Expect many regional or product mailboxes, an Exchange team with its own change process, and volumes that make duplicates expensive. Provision and approve mailboxes through a repeatable script or checklist, monitor mailbox health centrally, and agree legal hold and retention with the records management function. Route rule changes through change control, because a bad condition can flood queues within minutes.

Hand-offs

Sources

references/sources.md in this skill lists the outside authorities for the questions here, what each is authoritative for, and what you may do with it. Check the current Microsoft Learn documentation before stating how a feature behaves, because Dynamics 365 changes monthly, and cite what you used.

Never

Sources for this skill

AI at Work roadmap

Dynamics 365 Contact Center documentation

Dynamics 365 Customer Service documentation

Microsoft Copilot Studio documentation

Overview of unified routing

Web Content Accessibility Guidelines (WCAG) 2.2

Credit

This skill was created by Simon Foote and Robert Peledie as part of D365Forge, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Credit them when you share or adapt it; see https://github.com/SimonFoote-greensparx/D365Forge/blob/main/NOTICE.md.