web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create Case Record in ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 53
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.
Categories:
I have the same question (0)
  • PowerBack19 Profile Picture
    679 on at

    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.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PowerBack19 ,

     

    I stuck at step 2. I got my subject tree setup. However, I'm having issues with fetching records from subject entity.

     

    Can you please provide me an example of extracting data from subject lookup into a variable?

     

    Please find my flow. I am fetching subject from email and allocating it to the field "Subject".

     

    Now I have to compare Subject field from flow with title of the subject entity.

     

    Then, creating a case with subjectId.

     

    SPatnala_1-1603873237535.png

     

     

    SPatnala_0-1603873170363.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard