Call status entry for insertRecords of Calls module not reflecting in Zoho web portal and zoho database
Using insertRecords api, I'm uploading call records with Call Status as Missed. It's uploaded successfully. When I check in website, the entry comes under Received calls and not missed calls.
Similarly, If I upload an entry with status Unattended Dialed, the zoho crm over writes it as Attended Dialed. Here is the sample entry:
xmlData=<Calls><row no="1"><FL val="ACTIVITYID">1716111456</FL><FL val="CONTACTID">2761771000000189001</FL><FL val="Created Time">0</FL><FL val="Call Duration">00:00</FL><FL val="Call Duration (in seconds)">0</FL><FL val="Modified Time">1507197326779</FL><FL val="SMOWNERID">2761771000000146001</FL><FL val="Call Start Time">1507197319463</FL>
<FL val="Call Status">Missed</FL><FL val="Subject">Automatic call logging</FL><FL val="Call Type">Inbound</FL></row></Calls>
This is the response of getRecords api:
"FL":[{"val":"ACTIVITYID","content":"2761771000000188013"},{"val":"SMOWNERID","content":"2761771000000146001"},{"val":"Call Owner","content":"Guna P"},{"val":"Subject","content":"Automatic call logging"},{"val":"Call Type","content":"Inbound"},{"val":"CONTACTID","content":"2761771000000189001"},{"val":"Contact Name","content":"Srikanth Natarajan"},{"val":"Call Start Time","content":"2017-10-05 15:25:19"},{"val":"Call Duration","content":"00:00"},{"val":"Call Duration (in seconds)","content":"0"},{"val":"Billable","content":"false"},{"val":"SMCREATORID","content":"2761771000000146001"},{"val":"Created By","content":"Guna P"},{"val":"MODIFIEDBY","content":"2761771000000146001"},{"val":"Modified By","content":"Guna P"},{"val":"Created Time","content":"2017-10-05 15:25:28"},{"val":"Modified Time","content":"2017-10-05 15:25:28"},
{"val":"Call Status","content":"Received"}]
Why this over writing happens?
Are you guys calculating the call status blindly from call type i.e INBOUND/OUTBOUND?
Thanks,
Guna