Convert Lead to Account with the same name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Riad
    Member
    • Aug 2018
    • 32

    Convert Lead to Account with the same name

    How to Convert Lead to Account with the same name. So the name of Account will be the same of the Lead. Thank you
  • victor
    Active Community Member
    • Aug 2022
    • 844

    #2
    Hi Riad,

    You can use Workflow:

    Click image for larger version  Name:	image.png Views:	0 Size:	62.0 KB ID:	116387

    Comment


    • Riad
      Riad commented
      Editing a comment
      Thank you. But I don't have Workflow
  • victor
    Active Community Member
    • Aug 2022
    • 844

    #3
    If when creating a Lead, you usually fill in firstName, then you can add the following code to /custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json:
    Code:
    "convertFields": {
            "Account": {
                "name": "firstName"
            }
        }
    If when creating a Lead, you usually fill in lastName, then you can add the following code to /custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json (screenshot 1):
    Code:
    "convertFields": {
            "Account": {
                "name": "lastName"
            }
        }
    - After saving the changes make Rebuild.
    - Refresh your Lead page and try converting. Depending on the code option you selected, you will automatically have the firstName or lastName value substituted into the name field of the created Account (screenshot 2).​
    Attached Files

    Comment

    Working...