I am using insertRecords with API.
I have
a problem
when I create
a task to
an
existing
lead
. The field "Task Owner" is not registered properly. Always records the same Task Owner, whatever it is in the XML. Always records laura@test.es , although the variable $task_owner is other....
This is my code:
$task_owner = "nieves@test.es";
$tomorrow = mktime(0,0,0,date ("m"), date ("d")+1, date ("Y"));
$mixml = rawurlencode(
"<Tasks>
<row no=\"1\">
<FL val=\"SMOWNERID\">272861000000080001</FL>
<FL val=\"Task Owner\">" . $task_owner . "</FL>
<FL val=\"Subject\">Tel - Diagnostico</FL>
<FL val=\"Due Date\">" .date("m/d/Y",$tomorrow). "</FL>
<FL val=\"SEID\">" . $lead_id . "</FL>
<FL val=\"SEMODULE\">Leads</FL>
<FL val=\"Status\">Not Started</FL>
<FL val=\"Priority\">Normal</FL>
<FL val=\"Send Notification Email\">false</FL>
<FL val=\"Description\">Telefonear - Diagnostico</FL>
</row>
</Tasks>"
);
$url = "https://crm.zoho.com/crm/private/xml/Tasks/insertRecords?newFormat=1&authtoken=111111&scope=crmapi&xmlData =" . $mixml;
echo curlexec($url);
Have you any idea? All the rest is fine.