Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Keeping Custom Lead Data When Converting Lead -> Account

  1. #1
    matthewfong is offline Junior Member
    Join Date
    Jan 2008
    Posts
    4

    Default Keeping Custom Lead Data When Converting Lead -> Account

    Hi,

    I have a few custom fields added to the Leads module (website, revenue, and employees). I would like to know if it's possible to copy the custom field information for a lead to the account information when converting the lead to an account. I'm having troubles getting to website field in the leads module to be automatically put into the website field in the account module. Does anyone know how to do this? or is it not possible with sugar community addition?

    --matt
    neoaccel, inc.
    http://www.neoaccel.com

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    I believe this will work properly and automatically if the custom field names are the same in both the Leads module and Accounts module. However, if you are trying to make this happen from a custom field to a standard field you may need to change some php code to make it happen.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    aboerstra is offline Junior Member
    Join Date
    Feb 2008
    Posts
    3

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    This is not working for me. I have changed both the field names and labels so they are identical. I have also enabled "duplicate merge" on both fields as was suggested in another thread on the same topic. I can't get it to work.
    Advice from anyone who actually has this working would be appreciated.

    Thanks,
    Adrian

  4. #4
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    I just tested this scenario out on Sugar 5.0b. I added a custom field ("test_c") to the Leads module and Accounts module. I then created a new Lead and converted the Lead. When I converted the Lead, the "Test" field was displayed on the "Convert Lead" panel. It then properly carried this value through to the Account.

    Perhaps this is a version specific problem. Does your custom field show up on "Convert Lead" panel?
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  5. #5
    Markku's Avatar
    Markku is offline Sugar Community Member
    Join Date
    Nov 2004
    Location
    Helsinki
    Posts
    910

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    Hi dpatech,

    After reading your post I had to try it with Sugar 4.5.1i and custom field conversion from lead to account worked fine. However I recall trying the same with early 4.5.1 version with no luck, maybe I did something wrong back then or maybe this feature was added/fixed later, can't say.

  6. #6
    ljbutler is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Derbyshire, UK
    Posts
    30

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    Hi Matt,

    I needed to do exactly the same thing and got some advice from a developer so here we go:-

    1. Create a custom field in the leads module i.e companyWebsite_c Note:- it will add the _c automatically to all custom fields.
    2. Add EXACTLY the same field to the Accounts module - same field name, type etc.

    The two fields will be connected and the data will pass from the lead to the new account when you convert the lead.

    However - there is a small problem. 'Website' is already a field in accounts. You can remove it from all your account views in studio, so it still exists but you never see it. However the one 'view' you cant change in studio is the conversion screen from lead to contact. During the process of converting a lead to a contact and creating the new account you will see both your new companyWebsite field (with your data already entered into it) and the original website field, waiting to be filled in. To get rid of this now redundant field you have to edit the php code, which is fairly simple.

    Go to modules/accounts and find the file getWideFormBody.php open it and search for http (the website field is automatically pre filled with this, so it's the easiest way to find the right line). Delete that line and the carriage returns above and below it. Save the file and give it a try!

    Disclaimer:- I know nothing! I've done this on my own install which is not yet fully working because of other issues. This fix is a mixture if limited information from various developers and my own hacking about. However, it seems to work and doesn't appear to have caused any problems as yet.

    Out of interest, what kind of situation are you trying to make sugar work for? It seems we're seeing similar shortcomings and I wonder if you are trying to achieve a similar set up to us. I'll be honest - I'm struggling to make this thing work and if we can help each other out it might make life a whole lot less stressful!
    Lucy.

    --------------------------------------------------
    Sugar Version - 5.0.0.a
    Sugar Edition - Community Edition
    Operating System - Centos 5.1
    PHP Version - 5.1.6
    Database - MySQL 5.0.22
    Web Server - Apache 2.2.3
    --------------------------------------------------

  7. #7
    baigeman is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    40

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    So you would have to create 3 separate custom fields that are exactly the same? One in Targets, one in Leads, and one in Contacts (or whatever your flow of data is). Is there no way to create one custom field that all 3 link to?

    If you want a custom field to be a drop down menu you can imagine how big of a pain this can get especially when you decide to then change the list in the drop down.

    Is there a difference in 4.5.1h to 5.0+ ?

    Thanks,

    Jim
    SugarOS 4.5.1h
    VMware on a LAMP
    3-5 users

  8. #8
    baigeman is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    40

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    OK,

    You just have to create independent fields for each module, but they can all be pointed to the same dropdown list. At least you can do that, but still not sure why it is too hard to centralize custom fields in the same way.
    SugarOS 4.5.1h
    VMware on a LAMP
    3-5 users

  9. #9
    ljbutler is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Derbyshire, UK
    Posts
    30

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    It's not an ideal solution by a long way.

    Two shortcomings of my method posted above are that the website address no longer appears as a link as it would if you were using the native website field, and that you have to re-make the mod to the php described above every time you update to the latest version.

    Still, for us it's better than nothing!
    Lucy.

    --------------------------------------------------
    Sugar Version - 5.0.0.a
    Sugar Edition - Community Edition
    Operating System - Centos 5.1
    PHP Version - 5.1.6
    Database - MySQL 5.0.22
    Web Server - Apache 2.2.3
    --------------------------------------------------

  10. #10
    bent is offline Senior Member
    Join Date
    Sep 2008
    Posts
    29

    Default Re: Keeping Custom Lead Data When Converting Lead -> Account

    Quote Originally Posted by ljbutler
    It's not an ideal solution by a long way. Two shortcomings of my method posted above are that the website address no longer appears as a link as it would if you were using the native website field, and that you have to re-make the mod to the php described above every time you update to the latest version.
    Still, for us it's better than nothing!
    Your method worked wonderful for us in 5.1 - thank you for posting it. In regard to the mod-remake after updates to the latest sugar version - aren't the custom fields created in Studio carriedover to the new version?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. converting Lead does not save the custom fields
    By sujiea in forum Developer Help
    Replies: 1
    Last Post: 2008-02-02, 06:21 AM
  2. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  3. Replies: 0
    Last Post: 2007-03-08, 01:26 PM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •