Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer Insights - Journeys forum

How to create account and contact automatically when new lead is created

(0) ShareShare
ReportReport
Posted on by 95

Hello,

When I create a lead, I write: First Name, Last Name and Account name in a Lead form. Then I create new contact and new account based on lead fields. 

 pastedimage1564995102781v1.png

Unfortunately, when I create new contact - an account hasn't exist yet. 

 pastedimage1564995204255v2.png

So then, when I have a contact - company isn't matched.

pastedimage1564995263719v3.png

I would like to have a solution like in case when I qualify lead (that new contact and account is created automatically), but I would like to have new contact and account created automatically when I create new lead (and of course have primary contact and account mapped). Is it possible? 
How can I do it? 

Categories:
  • Iza Profile Picture
    Iza 95 on at
    RE: How to create account and contact automatically when new lead is created

    Dear Pavan,

    Thanks for your answer. I think it will be nice to use option 2. Unfortunately, it doesn't work properly. I'm a junior, so I think I do sth wrong. Could you show me how to do that step by step?

    Thanks in advance

  • Verified answer
    RE: How to create account and contact automatically when new lead is created

    Hi Iaz,

    You can write a plugin to create account (with Company name field in lead entity) and Contact record (with first and last names) and associate account with contact record.

    Let me know if it doesn't help you.

    Actually I have another solution. You create an action to do those two activities

    a. Create Account

    b. Create Contact along with account id.

    And call the actioin on save of Lead so that in case of either account or contact creation fails the whole operation reverts back. With that you won't have any orphan records in the system.

    Note: In case my answer helped you. Kindly mark it as verified.

    Warm Regards,

    Pavan Kumar Garlapati

    Follow my Blog: https://pavankumargarlapati.wordpress.com

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans