javascript - Need clarification on insert API call in Zoho crm -


i got below error while trying store contact form value zoho.

my xml code: ------------ when give name , email address hard coded works fine: var xmldoc = '<contacts><row no="1"><fl val="first name">peter</fl><fl val="last name">jhon</fl><fl val="email">peter.r@gmail.com</fl></row></contacts>';   while concatenating throw error error: <message>unable 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>'; 

field label close tag lastname missing

var xml = '<contacts><row no="1"><fl val="first name">' + contact.firstname + '</fl><fl val="last name">' + contact.lastname + '</fl></row></contacts>'; 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -