Introduction: In this blog, we will understand how to create a case in D365 CE whenever an email is received to the queue. (Converting queue items to the case)
Use Case: We have a queue named customer support and whenever a user sends an email to the customer support queue, a new case should get created in D365 CE.
Steps to be followed:
Create Mailbox for Queue:
We will create a Shared mailbox which can be used by multiple people.(support team)
- Go to Admin Center.
- Go to Groups -> Shared mailboxes-> Add a shared mailbox

- Enter Name , Email and click on save changes.


Once a shared mailbox is created we can use that email address while configuring the queue.
Creating Queue in D365 CE:
- Go to Admin Center. (https://admin.powerplatform.microsoft.com/environments)
- Select the environment in which you want to create a queue.
- Click on Settings

- Expand Business and Click on Queues.

- Click on “+New” to create new record.

- Enter Name and Incoming email of the queue.

- Save record.
- After Saving, a record Mailbox will be automatically created for the Queue.

Configuring the Mailbox
- Open the Mailbox of the queue.
- Click on Approve Email
- Click on Test & Enable Mailbox
- After Configuring Successfully, you can see Status as Success for Incoming and Outgoing Email.

Now we have configured the queue and mailbox successfully.
We will create “RECORD CREATION AND UPDATE RULES” to create case of queue items.
Creating RECORD CREATION AND UPDATE RULES:
- Open the Customer Support queue record
- Go to Record Creation and update rules section and click on “+New Record Creation and Update Rule”

- Enter Rule name and save the record

- Click on “+New” to add action

- Enter the condition to create new case record.
You can add condition based on your requirement.

- After adding condition click on “Save and open Power Automate”

Customizing Power Automate
- Click on Continue

- Once you will click on Continue, a flow will be created automatically.

- Save the flow.
- Activate the Record Creation and Update Rule by clicking on Activate button.

After doing everything successfully, both the records should look like below:
Record Creation and Update Rule Record:

Queue Record:

Testing:

