Complete step-by-step guide on how to create a shared mailbox in Microsoft 365 and configure it to work with Dynamics 365 Customer Service for use with Email to Case or queues.
π© Step 1: Create a Shared Mailbox in Microsoft 365 Admin Center
- Go to: https://admin.microsoft.com
- Navigate to Teams & groups > Shared mailboxes.
- Click + Add a shared mailbox.
- Enter:
- Name: e.g., Support Mailbox
- Email address: e.g., support@yourdomain.com
- Click Create.
β After creation:
- Assign members (e.g., D365 service account, or mailbox administrator).
- Note: Shared mailboxes donβt need a license to receive emails.
π Step 2: Assign a License Temporarily (if needed)
β οΈ Dynamics 365 requires the mailbox to authenticate, and shared mailboxes donβt have sign-in capabilities by default.
So you have two options:
Option A: Use a licensed user mailbox instead
- More straightforward. Use a user mailbox and forward emails from the shared mailbox.
Option B: Temporarily assign a license to the shared mailbox
- In Microsoft 365 Admin Center, go to Users > Active users.
- Search the shared mailbox name and assign an Exchange Online Plan 1 license.
- Enable Sign-in on the mailbox (optional but sometimes required).
- Add delegated permissions if needed.
π§° Step 3: Create a Queue in Dynamics 365 Customer Service
- Go to Customer Service Admin Center or Advanced Settings.
- Navigate to Queues > Click + New.
- Fill the form:
- Name: Support Queue
- Type: Public
- Incoming Email: support@yourdomain.com (the shared mailbox)
- Set “Convert Incoming Email to Activities” to Yes
- Save the queue.
π« Step 4: Configure the Mailbox in Dynamics 365
Once you save the queue, a mailbox record is automatically created.
- Navigate to Email Configuration > Mailboxes.
- Search and open the mailbox created for support@yourdomain.com.
- Ensure:
- Email Address: Matches the shared mailbox
- Incoming Email: Server-Side Synchronization
- Outgoing Email: Server-Side Synchronization
- Approve and Enable:
- Click Approve Email
- Then click Test & Enable Mailbox
β Once successful, status should be:
- Incoming Email Status: Success
- Outgoing Email Status: Success
βοΈ Step 5: Set Up Automatic Record Creation and Email-to-Case
- Go to Service Management > Automatic Record Creation and Update Rules
- Click + New:
- Set Source Type = Email
- Queue = Support Queue
- Add Rule Items β Action = Create Case
- Save and Activate the Rule.
π Step 6: Grant Mailbox Permissions (If Needed)
If you’re using a service account or application for mailbox access:
- Ensure full access permissions are granted:
powershell
CopyEdit
Add-MailboxPermission -Identity “support@yourdomain.com” -User “serviceuser@yourdomain.com” -AccessRights FullAccess
- If using modern authentication, register an app in Azure AD and grant access to Exchange via Graph API or EWS.
π§ͺ Step 7: Test the End-to-End Flow
- Send a test email to support@yourdomain.com
- Wait 1β2 minutes
- Verify:
- Email shows in the queue
- Case is automatically created
π§ Summary
| Step | Action |
| 1 | Create shared mailbox in Microsoft 365 |
| 2 | (Optional) Assign license for authentication |
| 3 | Create queue in Dynamics 365 |
| 4 | Configure and enable mailbox |
| 5 | Setup Email-to-Case rules |
| 6 | Grant permissions for mailbox access |
| 7 | Test the setup |

Leave a comment