Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

How to create account when case arrives in system

(0) ShareShare
ReportReport
Posted on by 834

Hi,

I am doing a simple email to case conversion, whenever the email to case take place, Contact gets created automatically but account does not. So I am facing the problem that how do I create a  new account.

Customer field of case gets populated with Contact but I need it to be filled with record of account.

Any suggestions.

  • Ravi Fulani Profile Picture
    834 on at
    RE: How to create account when case arrives in system

    I did read about regarding object id, but here wa are listing email message id which will tell us to which case it belongs, and you get the case. But how do it help me. i need to find if the customer which is in beginning is customer, does this customer has any account or not.

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: How to create account when case arrives in system

    Hi partner,

    Your approach is correct, and you should change the fetch like this.

    pastedimage1596078058780v1.png

    Regards,

    Leo

  • Ravi Fulani Profile Picture
    834 on at
    RE: How to create account when case arrives in system

    Hi Leo,  I did thought of that but i got stuck, as i need to check whether that account already exist  or not, if not then i will create a new one. How I check that. I thought of MS Flow and collect (List records) accounts and then check by senders email. If any account has that email then i won't create new account . But if list records  equal zero, i will create the account. But from case when i am trying to fetch email, i can't extract it.  I need to know how to do that and at same time is this approach is correct or not?

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: How to create account when case arrives in system

    Hi partner,

    When converting email to case, D365 will create new contact through "To" field and this contact will be the value of customer in new case.

    So what do you want to base your new account?

    Whatever you are using the ribbon Convert to Case in email form or record creation rule, you could create a new workflow, and set its trigger condition to when creating the case and the origin equals "Email" because all the cases converted from emails have the default origin "Email".

    pastedimage1596073726397v1.png

    pastedimage1596073776323v2.png

    Then add a new action to create account.

    pastedimage1596073845790v3.png

    In the properties, you could set values for account from new case, but this workflow could not get values from email directly, you could only get values from case.

    If you want to set values for account from email, you need to create a Power Automate (FLOW).

    In FLOW, we could list the email record we need and set its values to account.

    pastedimage1596074237331v4.png

    Best Regards,

    Leo

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans