UPDATE vtiger_contactdetails as origen, vtiger_crmentity as destino
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,origen.phone,” ” ,origen.email)
WHERE destino.crmid = origen.contactid
AND destino.setype = "Contacts";
UPDATE vtiger_leaddetails as origen, vtiger_crmentity as destino, vtiger_leadaddress as aux
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,aux.phone,” ” ,aux.mobile,” “,origen.email)
WHERE destino.crmid = origen.leadid
AND aux.leadaddressid = origen.leadid
AND destino.setype = "Leads";
No hay comentarios:
Publicar un comentario