API & ZC records & getURL
Read first (getURL tutorial on wiki)
For a long while I have been trying to use the getURL to import records from other ZC apps in different accounts..
I use the getURL function all the time to consume other REST resources, i.e., Twitter, Myspace, Basecamp, other XML files.
But, when it came to passing a request like the following using the "getURL()" function I always got an error message in xpathBuilder
"Undefined"
"Undefined"
Here is/ was my request...
http://creator.zoho.com/api/xml/pdi-connect/Rep_Info_Form/view/matchall/ID!=0/apikey=<apikey>&ticket=<ticket>;;;
I asked about this "Undefined, Undefined" error many times through ZC support, but no response...
Workaround!
Instead of using "get" option use "post" option..
clarification... instead of using the "get" option IN THE XPATH BUILDER. Use the "post" check box. You are still using the getURL() function here in your DS. The post option is selected in the XpathBuilder
Then select two parameters in xpathbuilder
apikey = <apikey>
ticket = <ticket>
Success!
So again, use getURL() but select the post option in xpathbuilder to get your xml nodes loaded. (I have only had to select the "post" option in the xpathbuilder for Zoho's API. Other REST resources let me use the "get" option just fine. :)