Hi,
As said, first import all accounts, contact, cases,… and make sure to create a field containing the old crm record id, i used sdif field as salesforce id and psfid as parent salesforce id (the case id related to the email).
then create the email record if you find the parent id in suitecrm
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Examples/REST/PHP/Creating_or_Updating_Multiple_Records/
here are the fields to import.,
‘value’ are the value from your csv.,
$parent_id must be the suitecrm id of the parent record
$parent_type is the module of parent record (cases, contacts… )
$assigned_user_id is the suitecrm id of the user to assign the email to.
$set_entry_parameters = array(
'session' => $session_id,
'module' => 'Emails',
'name_value_list' => array(
array("name" => "description", "value" => $description),
array('name' => 'name', 'value' => $name),
array('name' => 'from_addr', 'value' => $from_addr),
array('name' => 'to_addrs', 'value' => $to_addrs),
array('name' => 'cc_addrs', 'value' => $cc_addrs),
array('name' => 'bcc_addrs', 'value' => $bcc_addrs),
array('name' => 'date_sent', 'value' => $date_sent),
array("name" => "assigned_user_id", "value" => $assigned_user_id),
array('name' => 'description_html', 'value' => $description_html),
array('name' => 'parent_type', 'value' => $parent_type),
array('name' => 'parent_id', 'value' => $parent_id),
),
);
$set_entry_result = call("set_entry", $set_entry_parameters, $config['url']);
if you want to create a a lead from an email then it is the same operation but specify the lead module instead of email . Sorry i do not see how to do without custom code.
BM.