2016-06-28 64 views
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>'; 

回答

0

字段標籤關閉標籤失蹤

var xml = '<Contacts><row no="1"><FL val="First Name">' + contact.firstName + '</FL><FL val="Last Name">' + contact.lastName + '</FL></row></Contacts>';