Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

I want to create account record instead of contact record in auto record creation rule once case record is creating from incoming emails

(0) ShareShare
ReportReport
Posted on by 5

hi everyone, 

I have configured a automatic record creation rule for creating case records from incoming emails. whenever any email comes in from unknown sender then a case record is created and also a contact record is created and linked with the case created. but my requirement is that when email comes in from unknown sender then account record should be created and linked with case record instead of contact. is there any OOB way to achieve this??   

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: I want to create account record instead of contact record in auto record creation rule once case record is creating from incoming emails

    Hi m.abdullah,

    For point1, you can change the expression in 'Add Account' step:

    slice(triggerOutputs()?['body/submittedby'],add(indexOf(triggerOutputs()?['body/submittedby'],'"'),1),lastIndexOf(triggerOutputs()?['body/submittedby'],'"'))

     pastedimage1652850532610v1.png

    For point2, it's hard to achieve. Because the email is received and can't update its value of 'From' field.

  • samwillm Profile Picture
    samwillm 142 on at
    RE: I want to create account record instead of contact record in auto record creation rule once case record is creating from incoming emails

    If you are still facing problem so you should try to Dynamics 365 support service partner . they can definitely solve your problem 

  • m.abdullah Profile Picture
    m.abdullah 5 on at
    RE: I want to create account record instead of contact record in auto record creation rule once case record is creating from incoming emails

    Hi steve,

    thank you for such a beautiful blog.

    but i am facing one issue with this.

    1. now account record is creating but in name field emails address of the customer is also coming. can you please help me with this  

    pastedimage1652784543075v1.png

    2. In email From field email address is populating instead of account lookup  .

    pastedimage1652784772905v2.png

    can you please check this out? 

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: I want to create account record instead of contact record in auto record creation rule once case record is creating from incoming emails

    Hi m.abdullah,

    There is no OOB way to do this. You need manually change the flow. Please see the below steps:

    1. Change the setting to Mapping in Power Automate manually.

    pastedimage1652692000554v1.png

    2. Open you flow.

    pastedimage1652692105063v2.png

    3. Find the 'if no' branch in the 'Is this email sender a contact or an account' step :

    Snipaste_5F00_2022_2D00_05_2D00_16_5F00_16_2D00_15_2D00_41.png

    4. Delete the action in this branch, and add a Account:

    pastedimage1652692311812v3.png

    pastedimage1652692322781v4.png

    5. Set the 'Customer from email sender' variable with this function: concat('accounts(',outputs('Add_a_new_row')?['body/accountid'], ')')

    pastedimage1652692415491v5.png

    6.Change the Contact(Contacts)'s expression in 'Create a record (don't rename this step)' action

    pastedimage1652692530119v6.png

    pastedimage1652692557346v7.png

    Use this expression: 

    if(contains(triggerOutputs()?['body'],'_emailsender_value'),if(contains(variables('Customer from email sender'),triggerOutputs()?['body/_emailsender_value']),string(''),concat('contacts(',triggerOutputs()?['body/_emailsender_value'], ')')),string(''))
     
    Result:
    Snipaste_5F00_2022_2D00_05_2D00_16_5F00_17_2D00_03_2D00_53.png
    pastedimage1652692717256v8.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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans