1
我在嘗試將聯繫表單值存儲到zoho時遇到了以下錯誤。爲lastName的需要澄清在Zoho crm中插入API調用
My xml code:
------------
When i give the name and email address as hard coded it will works fine:
var xmlDoc = '<Contacts><row no="1"><FL val="First Name">Peter</FL><FL val="Last Name">jhon</FL><FL val="Email">[email protected]</FL></row></Contacts>';
While concatenating it throw error
Error:
<message>Unable to parse XML data</message>
var xml = '<Contacts><row no="1"><FL val="First Name">' + contact.firstName + '</FL><FL val="Last Name">' + contact.lastName + '</row></Contacts>';