<?xml version="1.0" encoding="UTF-8"?>
<csv-inputs xmlns="http://axelor.com/xml/ns/data-import"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/data-import http://axelor.com/xml/ns/data-import/data-import_5.2.xsd">
  
	<input file="Lead.csv" separator=";" type="com.axelor.apps.crm.db.Lead" search="self.importId = :importId" call="com.axelor.csv.script.ImportLead:saveLead" >
		<bind column="description" to="description"/>
		<bind to="jobTitleFunction" search="self.name = :jobTitle">
			<bind to="name" column="jobTitle"/>
		</bind>
		<bind to="emailAddress" search="self.address = :email">
			<bind to="address" column="email" />
		</bind>
		<bind to="contactDate" eval="call:com.axelor.csv.script.ImportDateTime:importDate(contactDate)" column="contactDate"/>
		<bind to="createdOn" eval="call:com.axelor.csv.script.ImportDateTime:importDate(contactDate)" column="contactDate"/>
		<bind to="user" search="self.importId = :userImportId" update="true"/>
		<bind to="createdBy" eval="call:com.axelor.csv.script.ImportLead:importCreatedBy(userImportId)"/>
		<bind to="statusSelect" column="statusSelect" eval="1" if="statusSelect == null" />
	</input>
	
</csv-inputs>