Lead conversion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Exsto
    Member
    • Nov 2018
    • 58

    Lead conversion

    Hello,
    when I try to convert a lead into a company, the shipping address fields are not filled in automatically.
    Do I have to do something in particular?
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    you can press on to the "Copy Billing" button under the "shipping address" panel, or write a formula that will make auto-copy upon conversion.

    Comment

    • Exsto
      Member
      • Nov 2018
      • 58

      #3
      hello Massimo, thanks for answering. In the leads I have already filled in the fields, I don't understand why they are not replicated in the conversion

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        When you are converting Lead into Account, it's auto-converting lead.address to account.billingAddress. For some companies the shipping address is not neccessery to be used. That's why it is not filling automatically upon converting.

        Comment

        • Exsto
          Member
          • Nov 2018
          • 58

          #5
          Hi, to solve the problem I tried this solution here "custom/Espo/Custom/Resources/metadata/entityDefs"

          PHP Code:
          {
              "convertEntityList": [
                  "Account",
                  "Contact"
              ],
              "convertFields": {
                  "Contact": {
                  },
                  "Account": {
                      "shippingAddressStreet": "indirizzoSpedizioneAddressStreet",
                      "shippingAddressCity": "indirizzoSpedizioneAddressCity",
                      "shippingAddressState": "indirizzoSpedizioneAddressState",
                      "shippingAddressPostalCode": "indirizzoSpedizioneAddressPostalCode",
                      "shippingAddressCountry": "indirizzoSpedizioneAddressCountry"
                  }
                }
              } 
          
          The relative part of the exclusion of opportunities works well.
          However, he continues not to transfer the shipping address.
          Maybe it's not the right solution?

          Comment

          • Maximus
            Senior Member
            • Nov 2018
            • 2731

            #6
            Did you make a rebuild after?

            Comment

            • Exsto
              Member
              • Nov 2018
              • 58

              #7
              Hi Maximus,
              yes, do you have any other suggestions?

              Comment

              • Maximus
                Senior Member
                • Nov 2018
                • 2731

                #8
                You can use Formula instead to fill those fields https://github.com/espocrm/documenta...ion/formula.md.

                Comment

                Working...