Google apps script and api
hello,
do you know insert a leads with api and Google Apps Script. I write this code and i already have as response is "<response><error><code>4600</code><message>Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter.</message></error></response>"
Do you have a solution ? thanks
- xmlData="xmlData=<Leads><row no='1'><FL val='First Name'>"+LeadsList.getString('nom')+"</FL><row></Leads>";
- Logger.log(xmlData);
-
- var options = {
- "xmlData": xmlData
- };
-
-
- var result = UrlFetchApp.fetch("https://crm.zoho.com/crm/private/xml/Leads/insertRecords?authtoken=5a265c48578ca57549a7a323466&scope=crmapi&newFormat=1",options);
- tmp = result.getContentText();
-
- Logger.log(tmp);