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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -