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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
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??   

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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
  • m.abdullah Profile Picture
    5 on at

    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? 

  • samwillm Profile Picture
    142 on at

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

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

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

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 14

#3
Fameeda Yaseen Profile Picture

Fameeda Yaseen 10

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans