API problem with xmlData parameter
Hi there,
Recently the API has stopped working for us - we reverted to using the SSL version of the API. However, now we can only get a return value with the following:-
- <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>
- <Leads>
- <row no="1">
- <FL val="LEADCF3"></FL>
- <FL val="Last Name">Jobs</FL>
- <FL val="LEADCF4"></FL>
- <FL val="LEADCF14"></FL>
- <FL val="City"></FL>
- <FL val="Postal Code"></FL>
- <FL val="LEADCF5"></FL>
- <FL val="LEADCF15"></FL>
- <FL val="LEADCF37"></FL>
- <FL val="LEADCF38"></FL>
- <FL val="Phone"></FL>
- <FL val="LEADCF39"></FL>
- <FL val="LEADCF40"></FL>
- <FL val="Lead Name"></FL>
- <FL val="Sector"></FL>
- <FL val="LEADCF29"></FL>
- <FL val="Company"></FL>
- <FL val="Website"></FL>
- <FL val="LEADCF19"></FL>
- <FL val="LEADCF53"></FL>
- <FL val="Lead Owner">email@email.com</FL>
- <FL val="Email">
email@email.com</FL>
- <FL val="Description"></FL>
- <FL val="LEADCF54"></FL>
- <FL val="Lead Source"></FL>
- <FL val="First Name">Steve</FL>
- </row>
- </Leads>
So the (Ruby) code is as follows...
- options = { :newFormat => "1",
- :apikey => API_KEY,
- :duplicateCheck => "2",
- :ticket => read_ticket_from_file }
- :xmlData => ... }
- response = RestClient.post 'https://crm.zoho.com/crm/private/xml/Leads/insertRecords', options
Can you see anything wrong with this?
Many thanks, Andy.