Is it possible to convert a lead into contact without rewrite all the "customer card" contact?
							
						
					Convert lead into contact
				
					Collapse
				
			
		
	X
- 
	
	
	
	
		
	
	
	
		
	
	
	
	
	
	
	
	
	Tags: None
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 check this file
 /application/Espo/Modules/Crm/Resources/metadata/entityDefs/Lead.json
 create (modify if exists) /custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json
 override section
 "convertFields": { "Contact": { "{contactField}":"{leadField}" } }
 
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Yes, I have done, but if I try to convert a lead into a contact I must to copy and paste all the fieldComment
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 By rebuilding espocrm the server respond to me: Bad server response with a complete white page.
 This I have written in the json file:
 
 {"convertFields": { "Contact": { "{contactField}":"{leadField}" } } }Comment
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Now is writting this in the file
 But I don't see any differences. What must to change after that? Because the link to the contact must to stay but there will be for example a button to replicate data in contactCode:{ "fields": { "convertFields": { "Contact": { "{contactField}":"{leadField}", } }Comment
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 are you kidding?
 use Account settings as example.
 Fields with the same name will be filled automatically, other you have to set there. And do not forget, that json has to be validCode:"Account": { "name": "accountName", "billingAddressStreet": "addressStreet", "billingAddressCity": "addressCity", "billingAddressState": "addressState", "billingAddressPostalCode": "addressPostalCode", "billingAddressCountry": "addressCountry" }Comment
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
- 
	
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Ok, but I don't understand why this feature is not set by default to convert a lead into a contact. Is it useful for all.Comment

Comment