Linking Zoho Creator Apps with CRM
Hi,
I'm using the deluge code given on the below link to populate a drop down select field with the vendor details in my Zoho CRM.
http://zohocrm.wiki.zoho.com/Linking-Zoho-Creator-Apps-with-CRM.html
I have adapted the code slightly, but it will not save and the error message I receive is not much help - "null".
The field to be populated is called "Seller1"
The code below is the same except I have replaced MYLOGINID, MYPASSWORD, MYAPIKEY and MYCVNAME
Can anyone help? Many thanks.
- responseStr = getUrl(("http://accounts.zoho.com/login?servicename=ZohoCRM&FROM_AGENT=true&LOGIN_ID=MYLOGINID&PASSWORD=MYPASSWORD"));
- startingIndex = (responseStr).indexOf("TICKET=" + 7);
- endIndex = (responseStr).indexOf("RESULT");
- ticketStr = (responseStr).subString(startingIndex,endIndex-1);
- m = map();
- xmlString = postUrl(("http://crm.zoho.com/crm/private/xml/Vendors/getCVRecords?newFormat=1&apikey=MYAPIKEY&ticket="+ticketStr+"&cvName=MYCVNAME", m));
- Seller1ListStr = xmlString.executeXPath("/response/result/Vendors/row/FL[@val=\"Vendor Name\"]/text()");
- Seller1List = Seller1ListStr.toList("-|-");
- for each name in Seller1List
- {
- Seller1.add(name);
- }