cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JabbarCRM
Level: Powered On

Create Case Record in Dynamics 365 when email receives to specific Email Address

Hi All,

I have scenario that Whenever an email comes to specific email address then Case Record should be created in Dynamics 365 wherein that record should have some data in it's fields such as 1) Origin field should be as Email 2) Subject field Should have Technical>Support>Licence 3)if that Email has any attachments then it should be related with that specific case record or Convert to whole Email into as PDF and then attach it to that specific case record.
4)In description field should have link to that attachment and that attachment should be added as Note to that case record as well.
1 REPLY 1
PowerBack19
Level: Powered On

Re: Create Case Record in Dynamics 365 when email receives to specific Email Address

It seems like you have a lot going on here. So, let's break this down.

 

First of all, have you looked into using Queues within Dynamics 365? You can set up automatic record creation from emails within the queue.

 

  1. Creating a Case record in Dynamics 365 is pretty easy. Just choose the "Create a new record" option from the Common Data Service connector. Then update the values accordingly.
  2. Make sure you have your Subject tree set up appropriately prior to updating the value.
    • The Subject field is technically a Lookup field. So, you will need to populate the value of the GUID of the Subject. You will need pull the list of Subjects to then pull appropriate GUID.
  3. You can check if Emails have attachments.
    • I would suggest you use the "Get emails" option.
    • You can filter the records using the "To" field to filter for the specific email address.
    • You can set the "Top" value to be 1 to only pull the 1 email.
    • You can add a Condition in your flow to check if the email has an attachment. 
  4. If you are wanting to convert the email to a PDF, then I would suggest you use the "Create File" option under the SharePoint connector and have a Temp File to put the file into.
    • I would suggest creating a Word document, then populate the document with the contents of the email.
    • Then you can use the "Word Online" connector with the "Convert Word Document to PDF" action.
    • Next, you would have to use the "Create File" action again to create the PDF file.
    • Then you would need to create a Note record within Dynamics 365 and attached the newly created PDF.
    • Then set the "Regarding" of the Note record to point to the Case record you created in the earlier step.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,103)